Migrateterror

This commit is contained in:
holger.trampe 2019-12-15 22:05:40 +01:00
parent 184e1b6a54
commit c9ebe2853a
50 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -86,7 +86,8 @@ class Profile(models.Model):
agency = models.ForeignKey(Agency, on_delete=models.PROTECT)
image = models.ImageField(default='userprofilepics/default.jpg', upload_to='userprofilepics', blank=True)
compfunc = models.CharField(max_length=60, blank=True)
visible = models.BooleanField(default=True)
#visible = models.BooleanField(default=True)
def __str__(self):
return f'{self.user.last_name}'

View File

@ -34,9 +34,10 @@ class UsersAddProfileForm(forms.ModelForm):
"func" : "Agenturfunktion",
"compfunc" : "Tätigkeit",
"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
class AgencyUpdateForm(forms.ModelForm):