django-admin formfield_for_* change default value per/depending on instance
- by Nick Ma.
Hi,
I'm trying to change the default value of a foreignkey-formfield to set a Value of an other model depending on the logged in user.
But I'm racking my brain on it...
This: Changing ForeignKey’s defaults in admin site would an option to change the empty_label, but I need the default_value.
#Now I tried the following without errors but it…