# User view refactoring
* refactors majority of user views into class based views * introduces BaseModalFormView and BaseView for even more generic usage * renames url identifier user:index into user:detail for more clarity
This commit is contained in:
1 parent
be9f6f1b7e
commit
afbdf221c3
7 files changed
+103
-110
No files matched your search
+1
-1
@@ -38,7 +38,7 @@ class UserNotificationForm(BaseForm):
|
||||
self.form_title = _("Edit notifications")
|
||||
self.form_caption = _("")
|
||||
self.action_url = reverse("user:notifications")
|
||||
self.cancel_redirect = reverse("user:index")
|
||||
self.cancel_redirect = reverse("user:detail")
|
||||
|
||||
# Insert all notifications into form field by creating choices as tuples
|
||||
notifications = UserNotification.objects.filter(
|
||||
|
||||
Reference in new issue
Block a user