Skip to content

Commit

Permalink
account for possibility that coordinators == None in TWLight/view_mix…
Browse files Browse the repository at this point in the history
…ins.py
  • Loading branch information
jsnshrmn committed Nov 19, 2019
1 parent 0a9841d commit bbed99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TWLight/view_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_func_coordinator_or_self(self, user):
obj_coordinator_test = False # Set default.

# If the user is a coordinator run more tests
if user in coordinators.user_set.all():
if coordinators and user in coordinators.user_set.all():
try:
obj = self.get_object()
if obj:
Expand Down

0 comments on commit bbed99a

Please sign in to comment.