Skip to content

Commit

Permalink
add dosctrings
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Dec 18, 2024
1 parent 8ed22df commit db8cc77
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/argus/htmx/notificationprofile/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Everything needed python-wise to CRUD notificationprofiles
See https://ccbv.co.uk/ to grok class-based views.
"""

from django import forms
from django.urls import reverse
from django.views.generic import CreateView, DeleteView, DetailView, ListView, UpdateView
Expand All @@ -19,6 +25,8 @@ def __init__(self, *args, **kwargs):


class NotificationProfileMixin:
"Common functionality for all views"

model = NotificationProfile

def get_queryset(self):
Expand Down Expand Up @@ -48,6 +56,8 @@ def get_success_url(self):


class ChangeMixin:
"Common functionality for create and update views"

form_class = NotificationProfileForm

def get_form_kwargs(self):
Expand Down

0 comments on commit db8cc77

Please sign in to comment.