On Aug 27, 2:55 pm, RubenK <c.min...@gmail.com> wrote: > I've setup my 'prepopulate_fields' so that it should automatically > enter a slug in the admin site, however when I click the 'add' link > it gives me the following error: > > "Key 'slug' not found in Form" > > I've triple checked all my models and database tables and everything > seems to be in order so I'm sort of stuck now! > These are my files: > > http://dpaste.com/hold/86096/- models.pyhttp://dpaste.com/hold/86098/- > admin.py > > Could anyone please assist me?
You're explicitly restricting the fields you display on the form, via the fieldsets attribute - but slug isn't one of the fields you display. Prepopulating fields is done via javascript on the form itself, so the fields have to be present. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---