Standards aenderungen raus
This commit is contained in:
parent
c88f1c280f
commit
753509926d
Binary file not shown.
|
|
@ -105,7 +105,7 @@ class Profile(models.Model):
|
||||||
phoneland = models.CharField(max_length=60, blank=True)
|
phoneland = models.CharField(max_length=60, blank=True)
|
||||||
phonemobile = models.CharField(max_length=60, blank=True)
|
phonemobile = models.CharField(max_length=60, blank=True)
|
||||||
# Wenn die Funktion gelöscht wird, wird die FUNC auf NULL gesetzt
|
# Wenn die Funktion gelöscht wird, wird die FUNC auf NULL gesetzt
|
||||||
func = models.ForeignKey("AgencyJob", blank=True, null=True, on_delete=models.SET_NULL)
|
func = models.ForeignKey("AgencyJob", blank=True, null=True, default=None, on_delete=models.SET_NULL)
|
||||||
# Wenn dieses Profil gelöscht wird, wird NICHT die Agency geslöscht
|
# Wenn dieses Profil gelöscht wird, wird NICHT die Agency geslöscht
|
||||||
agency = models.ForeignKey(Agency, on_delete=models.PROTECT)
|
agency = models.ForeignKey(Agency, on_delete=models.PROTECT)
|
||||||
image = models.ImageField(default='userprofilepics/default.jpg', upload_to=picturepath_user, blank=True)
|
image = models.ImageField(default='userprofilepics/default.jpg', upload_to=picturepath_user, blank=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue