Yeah you're right
I can't believe that
I mix the admin settings in the class, for a short explanation.
my code:
-----------------------------------------------------------
models.py
from django.contrib.auth.models import User
class MyUser(User):
chilean_rut = CLRutField(_('RUT'),primary_key=True)
some_field = models.CharField(max_length=50)
------------------------------------------------------------
admin.py
class MyUserAdmin(admin.ModelAdmin):
list_display = ('chilean_rut', 'email','some_field')
admin.site.register(MyUser,MyUserAdmin)
-------------------------------------------------------------
And my list_display is EMPTY ( on the http://127.0.0.1:8000/admin/myapp/myuser/
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---