Unknown field(s) (foo, bar) specified for Profile. Check fields/fieldsets/exclude attributes of class ProfileAdmin.
The properties work in list_display, but im missing something for the edit page.
Can i actually do this? So far i didnt find any hint on editing properties with the admin.
About the admin interface changing the model, I guess you're somehow editing `models.py` files. Are you making the migrations, applying them to the database and reloading the server? If you're not persisting changes that way, how do you patch models in memory every startup and ensure database schema is compatible with your models?
You can have an OneToOneField in the profile referencing Django's User model with `related_name='profile'`,
About the admin interface changing the model, I guess you're somehow editing `models.py` files. Are you making the migrations, applying them to the database and reloading the server? If you're not persisting changes that way, how do you patch models in memory every startup and ensure database schema is compatible with your models?
@propertydef username(self): return self.user.usernameusername.fget.short_description = "Username"
@username.setterdef username(self, username): self.user.username = username self.user.save()