Saturday, January 1, 2011

PageAdmin.fieldsets[0][1]['fields']' refers to field 'username' that is missing from the form.

Hello,

I am trying to make a custom (extended) User, according to this:
http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users

So I created my own user called DashboardUser, made a link to django
User using models.OneToOneField and added several additional
attributes.

So far so good.

Now I wanted my administration to display attributes but also to
display regular User attributes (like 'username' or 'last_name') and
that's where I ran into trouble because admin (or autodiscover() for
that matter) seems to be unable to find these.

Here's my model:
http://pastebin.com/CqKHV8xf

And here's my attempt to customize admin view for my DashboardUser:
http://pastebin.com/MzPDF12S

If anyone knows where to go from here, I'd appreciate your input (I
tried #django on freenode but nobody knew).

I am using Django 1.2.3 with Python 2.6.6 on Gentoo x86.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment