Commit ece3329d2d9b70adaab41257aca28dd43e4918f5
1 parent
cd65add3
Exists in
master
and in
5 other branches
Changed Page's title [Issue:#418]
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
users/views.py
... | ... | @@ -70,6 +70,10 @@ class Create(HasRoleMixin, LoginRequiredMixin, generic.edit.CreateView): |
70 | 70 | messages.success(self.request, _('User created successfully!')) |
71 | 71 | |
72 | 72 | return super(Create, self).form_valid(form) |
73 | + def get_context_data (self, **kwargs): | |
74 | + context = super(Create, self).get_context_data(**kwargs) | |
75 | + context['title'] = _("Add User") | |
76 | + return context | |
73 | 77 | |
74 | 78 | class Update(HasRoleMixin, LoginRequiredMixin, generic.UpdateView): |
75 | 79 | |
... | ... | @@ -243,4 +247,3 @@ class UserViewSet(viewsets.ModelViewSet): |
243 | 247 | queryset = User.objects.all() |
244 | 248 | serializer_class = UserSerializer |
245 | 249 | permissions_classes = (IsAuthenticatedOrReadOnly,) |
246 | - | ... | ... |