On Thu, Apr 10, 2008 at 12:13 PM, Daniel Roseman <[EMAIL PROTECTED]> wrote: > > On Apr 10, 10:50 am, "Almir Karic" <[EMAIL PROTECTED]> wrote: > > i have an error caused by the following line (which worked without > > problems on regular django trunk) > > > > slug = > models.SlugField("url_prefix",max_length=50,unique=True,prepopulate_from=('name',),help_text='e.g. > > "janez_marijan_potokar_novak" (PAZI, SUMNIKI)') > > > > any ideas what am i doing wrong? > > <snip traceback> > > If you're using newforms-admin, you should read this page carefully: > http://code.djangoproject.com/wiki/NewformsAdminBranch > The particular bit that applies to your code is the section headed > "Changed prepopulate_from to be defined in the Admin class, not > database field classes". > As described there, take the prepopulate_from attribute out of the > model definition and move it into the Admin class, so that it reads: > prepopulated_fields = {'slug': ('name',)}
thanks :-) -- error: one bad user found in front of screen --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---