From e43a4bd7251aaefec6c0671064779a58bf189a6d Mon Sep 17 00:00:00 2001 From: Duda Nogueira Date: Wed, 9 Aug 2017 09:00:39 -0300 Subject: [PATCH 1/2] Doc: Add url method to url to avoid error on django newer versions --- docs/index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.txt b/docs/index.txt index 2049c08..181e101 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -48,7 +48,7 @@ that are required. A minimal integration can work like this: urlpatterns = [ # ... - (r'^avatar/', include('avatar.urls')), + url(r'^avatar/', include('avatar.urls')), ] 4. Somewhere in your template navigation scheme, link to the change avatar From f31a9ae092da93cab1b3d6686e452f15a1fe1f93 Mon Sep 17 00:00:00 2001 From: Duda Nogueira Date: Wed, 6 Sep 2017 15:46:07 -0300 Subject: [PATCH 2/2] Confirm delete template: only show selection avatar paragraph when avatars are available. --- avatar/templates/avatar/confirm_delete.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avatar/templates/avatar/confirm_delete.html b/avatar/templates/avatar/confirm_delete.html index f81c815..aad11a9 100644 --- a/avatar/templates/avatar/confirm_delete.html +++ b/avatar/templates/avatar/confirm_delete.html @@ -2,11 +2,11 @@ {% load i18n %} {% block content %} -

{% trans "Please select the avatars that you would like to delete." %}

{% if not avatars %} {% url 'avatar_change' as avatar_change_url %}

{% blocktrans %}You have no avatars to delete. Please upload one now.{% endblocktrans %}

{% else %} +

{% trans "Please select the avatars that you would like to delete." %}

    {{ delete_avatar_form.as_ul }}