tralala 2
This commit is contained in:
parent
05b84ebe45
commit
33c250af0e
Binary file not shown.
|
|
@ -45,7 +45,7 @@ class Agency(models.Model):
|
||||||
if self.agencypic and hasattr(self.agencypic, 'url'):
|
if self.agencypic and hasattr(self.agencypic, 'url'):
|
||||||
return self.agencypic.url
|
return self.agencypic.url
|
||||||
else:
|
else:
|
||||||
return "/media/default.jpg"
|
return "/media/agencymain/default.jpg"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Class Profile
|
Class Profile
|
||||||
|
|
@ -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/default.jpg"
|
return "/media/userprofilepcis/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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue