SO JETZT ABER! P E N I S

This commit is contained in:
holger.trampe 2019-12-12 21:19:57 +01:00
parent 33c250af0e
commit 3f7d5fb993
4 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -118,7 +118,7 @@ class Profile(models.Model):
if self.image and hasattr(self.image, 'url'): if self.image and hasattr(self.image, 'url'):
return self.image.url return self.image.url
else: else:
return "/media/userprofilepcis/default.jpg" return "/media/userprofilepics/default.jpg"
# PERMISSIONS - Über alle Modelle hinweg, in der url.py wird dann die route verhindert! # PERMISSIONS - Über alle Modelle hinweg, in der url.py wird dann die route verhindert!
# Im template: if perms.users.PERMISSION # Im template: if perms.users.PERMISSION