forked from Fediversity/Fediversity
more conventional naming for views and templates
This commit is contained in:
parent
73c9c884d7
commit
a3365eb508
3 changed files with 2 additions and 2 deletions
|
@ -22,6 +22,6 @@ urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('', views.Index.as_view(), name='index'),
|
path('', views.Index.as_view(), name='index'),
|
||||||
path("", include("django.contrib.auth.urls")),
|
path("", include("django.contrib.auth.urls")),
|
||||||
path("account/", views.AccountDetail.as_view(), name='accountdetail')
|
path("account/", views.AccountDetail.as_view(), name='account_detail'),
|
||||||
path("services/", views.ServiceList.as_view(), name='service_list'),
|
path("services/", views.ServiceList.as_view(), name='service_list'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Index(TemplateView):
|
||||||
|
|
||||||
class AccountDetail(LoginRequiredMixin, DetailView):
|
class AccountDetail(LoginRequiredMixin, DetailView):
|
||||||
model = User
|
model = User
|
||||||
template_name = 'accountdetail.html'
|
template_name = 'account_detail.html'
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
return self.request.user
|
return self.request.user
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue