Commits

Sergey Maranchuk  committed 75c2f23

fix avatar form

  • Participants
  • Parent commits d738e80

Comments (0)

Files changed (1)

File djangobb_forum/urls.py

 
     # User
     url('^user/(?P<username>.*)/delete_avatar/$', forum_views.delete_avatar, name='forum_profile_delete_avatar'),
-    url('^user/(?P<username>.*)/upload_avatar/$', forum_views.upload_avatar, name='forum_profile_upload_avatar'),
+    url('^user/(?P<username>.*)/upload_avatar/$', forum_views.upload_avatar, {
+        'form_class': UploadAvatarForm,
+        'template': 'djangobb_forum/upload_avatar.html'
+        }, name='forum_profile_upload_avatar'),
     url('^user/(?P<username>.*)/privacy/$', forum_views.user, {
         'section': 'privacy',
         'form_class': PrivacyProfileForm,