You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
410 B
14 lines
410 B
from django.shortcuts import render
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
# Create your views here.
|
|
from core.views import ProtectedView
|
|
|
|
|
|
class IndexView(ProtectedView):
|
|
template_name = 'cabinet/index.html'
|
|
title = _('Личный кабинет')
|
|
|
|
def get_context_data(self, **kwargs):
|
|
context = super().get_context_data(**kwargs)
|
|
context['title'] = self.title
|
|
|