Skip to content

Commit

Permalink
add special case to show all qs for isles of scilly
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Nov 27, 2023
1 parent 329a9f3 commit 4fb3095
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crowdsourcer/views/marking.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,17 @@ def check_permissions(self):
):
raise PermissionDenied

def get_initial_obj(self):
if self.kwargs["name"] == "Isles of Scilly":
self.how_marked_in = [
"volunteer",
"national_volunteer",
"foi",
"national_data",
]

return super().get_initial_obj()

def process_form(self, form):
rt = ResponseType.objects.get(type="First Mark")
cleaned_data = form.cleaned_data
Expand Down

0 comments on commit 4fb3095

Please sign in to comment.