Commit 5e456919 authored by Thijs de Jong's avatar Thijs de Jong
Browse files

Cleaned some Code

parent 7b3377b8
......@@ -129,9 +129,10 @@ class MemberGroup(models.Model, metaclass=ModelTranslateMeta):
try:
return self.committee.get_absolute_url()
except self.DoesNotExist:
return self.society.get_absolute_url()
except self.DoesNotExist:
pass
try:
return self.society.get_absolute_url()
except self.DoesNotExist:
pass
class Meta:
verbose_name = _('member group')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment