Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form. [RSS Feed]

#1 Jan. 2, 2011 15:50:04

g.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.


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) ??

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 2, 2011 16:47:35

Ramiro M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.


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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 8, 2011 10:39:58

g.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.


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 athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form. [RSS Feed]

Board footer

Moderator control

Enjoy the 17th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support