default.jpg und media-ignore korrigiert
This commit is contained in:
parent
5c2e3e5e95
commit
3b6d1d422a
|
|
@ -1 +1,2 @@
|
|||
*/migrations/
|
||||
media/
|
||||
Binary file not shown.
|
|
@ -45,7 +45,7 @@ class Agency(models.Model):
|
|||
if self.agencypic and hasattr(self.agencypic, 'url'):
|
||||
return self.agencypic.url
|
||||
else:
|
||||
return "/media/agencymain/default.jpg"
|
||||
return "/media/default.jpg"
|
||||
|
||||
'''
|
||||
Class Profile
|
||||
|
|
@ -119,7 +119,7 @@ class Profile(models.Model):
|
|||
if self.image and hasattr(self.image, 'url'):
|
||||
return self.image.url
|
||||
else:
|
||||
return "/media/userprofilepics/default.jpg"
|
||||
return "/media/default.jpg"
|
||||
|
||||
# PERMISSIONS - Über alle Modelle hinweg, in der url.py wird dann die route verhindert!
|
||||
# Im template: if perms.users.PERMISSION
|
||||
|
|
|
|||
Loading…
Reference in New Issue