Enhanced news

This commit is contained in:
krophil committed 2017-10-02 14:29:36 +02:00
1 parent aab589b5d1
commit 3089b484d3
8 files changed
+118 -38

No files matched your search

+3
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