# 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:
@@ -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