I did not understand what was the a reason, but i changed order of
items in admin.py fields to be similar to items order in the model.
Maybe mistake was some mistyping. Anyway error disappeared.

regards,
gintare

On Jan 2, 6:47 pm, Ramiro Morales <cra...@gmail.com> wrote:
> On Sun, Jan 2, 2011 at 12:49 PM,gintare<g.statk...@gmail.com> wrote:
> > I was changing models many times and deleting tables inbetween.
> > New tables were generated to improved models and admin site worked
> > perfectly.
> > Now smth happened that i am getting error:
>
> > ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent'
> > that is missing from the form.
>
> > 'dateSent' is in the model and correctly described in admin.py
>
> > I did not added this field before generating new tables. It was
> > previously.
> > If i comment other fields gives the same error.
>
> > What can be the solution?
> > Should i make new project or there is a way to update forms (for
> > field 'dateSent' and orher fields that are missing from the form
> > according Django) ??
>
> Post only the definitions of the model containing dateSent and
> its ModelAdmin.
>
> Also:
>  Are you using dateSent somethwere else in the dmin.py?
>  Remove the admin.pyc file.
>
> --
> Ramiro Morales

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to