# HG changeset patch # User durandn # Date 1470053976 -7200 # Node ID 54d8dab80297c8c71e725bde75a177656348ac43 # Parent a47934ff37ec666bdf82346c25f0e92c5a4b8cc3 fixing stupid mistake (properly using as_view to call the view and proper template name) diff -r a47934ff37ec -r 54d8dab80297 src/iconolab/urls.py --- a/src/iconolab/urls.py Mon Aug 01 12:59:18 2016 +0200 +++ b/src/iconolab/urls.py Mon Aug 01 14:19:36 2016 +0200 @@ -35,7 +35,7 @@ url(r'^collections/(?P[a-z]+)/images/(?P[^/]+)/annotations/(?P[^/]+)/edit$', login_required(views.iconolab.EditAnnotationView.as_view()), name='annotation_edit'), url(r'^collections/(?P[a-z]+)/images/(?P[^/]+)/annotations/(?P[^/]+)/revisions/(?P[^/]+)/detail', views.iconolab.ShowRevisionView.as_view(), name='revision_detail'), url(r'^collections/(?P[a-z]+)/images/(?P[^/]+)/annotations/(?P[^/]+)/revisions/(?P[^/]+)/merge$', login_required(views.iconolab.MergeProposalView.as_view()), name='annotation_merge'), - url(r'^user/profile', login_required(views.iconolab.UserProfileView), name="user_profile"), + url(r'^user/profile', login_required(views.iconolab.UserProfileView.as_view()), name="user_profile"), url(r'^errors/404', views.iconolab.NotFoundErrorView.as_view(), name="404error"), url(r'^rest', include('restapi.urls')), url(r'^account/', include('iconolab.auth.urls', namespace='account')), diff -r a47934ff37ec -r 54d8dab80297 src/iconolab/views/iconolab.py --- a/src/iconolab/views/iconolab.py Mon Aug 01 12:59:18 2016 +0200 +++ b/src/iconolab/views/iconolab.py Mon Aug 01 14:19:36 2016 +0200 @@ -23,7 +23,7 @@ class UserProfileView(View): def get(self, request, *args, **kwargs): context = {} - return render(request, 'iconolab/user_profile.html', context) + return render(request, 'iconolab/user_page.html', context) class CollectionHomepageView(View, ContextMixin):