Migrationsmuschileckereimitaa
This commit is contained in:
parent
c9ebe2853a
commit
c8ff75d11b
|
|
@ -86,7 +86,7 @@ class Profile(models.Model):
|
||||||
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='userprofilepics', blank=True)
|
image = models.ImageField(default='userprofilepics/default.jpg', upload_to='userprofilepics', blank=True)
|
||||||
compfunc = models.CharField(max_length=60, blank=True)
|
compfunc = models.CharField(max_length=60, blank=True)
|
||||||
#visible = models.BooleanField(default=True)
|
visible = models.BooleanField(default=True)
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,9 @@ class UsersAddProfileForm(forms.ModelForm):
|
||||||
"func" : "Agenturfunktion",
|
"func" : "Agenturfunktion",
|
||||||
"compfunc" : "Tätigkeit",
|
"compfunc" : "Tätigkeit",
|
||||||
"image" : "Profilbild",
|
"image" : "Profilbild",
|
||||||
#"visible" : "Im Organigramm sichtbar"
|
"visible" : "Im Organigramm sichtbar"
|
||||||
}
|
}
|
||||||
#fields = ['phoneland','phonemobile', 'visible', 'func', 'compfunc', 'image']
|
fields = ['phoneland','phonemobile', 'visible', 'func', 'compfunc', 'image']
|
||||||
fields = ['phoneland','phonemobile', 'func', 'compfunc', 'image']
|
|
||||||
|
|
||||||
# Formular zum hinzufügen neuer Agentur-Mitglieder
|
# Formular zum hinzufügen neuer Agentur-Mitglieder
|
||||||
class AgencyUpdateForm(forms.ModelForm):
|
class AgencyUpdateForm(forms.ModelForm):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue