Skip to content

Commit 4fb3095

Browse files
committed
add special case to show all qs for isles of scilly
1 parent 329a9f3 commit 4fb3095

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

crowdsourcer/views/marking.py

+11
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,17 @@ def check_permissions(self):
238238
):
239239
raise PermissionDenied
240240

241+
def get_initial_obj(self):
242+
if self.kwargs["name"] == "Isles of Scilly":
243+
self.how_marked_in = [
244+
"volunteer",
245+
"national_volunteer",
246+
"foi",
247+
"national_data",
248+
]
249+
250+
return super().get_initial_obj()
251+
241252
def process_form(self, form):
242253
rt = ResponseType.objects.get(type="First Mark")
243254
cleaned_data = form.cleaned_data

0 commit comments

Comments
 (0)