Skip to content

Commit

Permalink
fixed typo in permissions_required field in mailfeed views
Browse files Browse the repository at this point in the history
  • Loading branch information
tncrdk committed Jan 13, 2024
1 parent 5fcd51d commit b28e96e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nablapps/mailfeed/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class MailFeedListView(PermissionRequiredMixin, ListView):
"""An overview of all mailfeeeds"""

permission_required = "Mailfeed.generate_mailfeeds"
permission_required = "mailfeed.generate_mailfeeds"
model = Mailfeed
template_name = "mailfeed/mailfeed_list.html"
paginate_by = 100
Expand All @@ -26,7 +26,7 @@ def get_context_data(self, **kwargs):
class CreateMailFeedView(PermissionRequiredMixin, View):
"""Create a new mailfeed"""

permission_required = "Mailfeed.generate_mailfeeds"
permission_required = "mailfeed.generate_mailfeeds"

def get(self, request):
mailfeed_form = MailFeedForm()
Expand Down Expand Up @@ -126,7 +126,7 @@ def post(self, request, mailfeed_id: int, uuid: str):
class MailFeedDetailView(PermissionRequiredMixin, DetailView):
"""Create and send emails to a mailfeed"""

permission_required = "Mailfeed.generate_mailfeeds"
permission_required = "mailfeed.generate_mailfeeds"

def get(self, request, mailfeed_id: int):
email_form = EmailForm()
Expand Down

0 comments on commit b28e96e

Please sign in to comment.