This commit is contained in:
Holger Trampe 2019-12-12 00:35:27 +01:00
parent 6adf8979cb
commit d324897a13
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class Profile(models.Model):
# Wenn der User gelöscht wird, wird auch das Profil gelöscht
user = models.OneToOneField(User, on_delete=models.CASCADE)
parent = models.ForeignKey(User, on_delete=models.CASCADE, related_name='parent_user')
parent = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, related_name='parent_user')
phoneland = models.CharField(max_length=60, blank=True)
phonemobile = models.CharField(max_length=60, blank=True)
func = models.CharField(choices=agency_task, default="", max_length=50)

View File

@ -91,6 +91,7 @@
},
success: function( data )
{
console.log(data);
clearSearchfield();
//Add User-Button
$("#ps_act").html(data['username_clean']);