Enhanced news

This commit is contained in:
2017-09-29 17:18:06 +02:00
parent aab589b5d1
commit 3089b484d3
8 changed files with 118 additions and 38 deletions

View File

@ -138,6 +138,9 @@ class Club(models.Model):
"""
return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP)
def get_full_logo_url(self):
return "https://%s%s" % (settings.SITH_URL, self.logo.url)
def can_be_edited_by(self, user):
"""
Method to see if that object can be edited by the given user