Pre-populating data in the admin panel

2014-01-31 Thread kerviel patrice
In the Django Admin I want to populate fields for a foreign key record when I click the add (+) button I tried with formfield_for_foreignkey but it does not work model class Property(models.Model): name = models.CharField(_('name'), max_length=50) description = models.TextField(_('descri

Re: Pre-populating data in the admin panel

2014-02-03 Thread kerviel patrice
Le vendredi 31 janvier 2014 09:22:46 UTC+1, kerviel patrice a écrit : > > In the Django Admin I want to populate fields for a foreign key record > when I click the add (+) button > I tried with formfield_for_foreignkey but it does not work > > model > > class Property(m