Re: [Django] #23515: AUTH_USER_MODEL and admin.E108

2014-09-19 Thread Django
#23515: AUTH_USER_MODEL and admin.E108
-+-
 Reporter:  fizista  |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.admin|  Version:  1.7
 Severity:  Normal   |   Resolution:  duplicate
 Keywords:  admin| Triage Stage:
  AUTH_USER_MODEL|  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => duplicate
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Duplicate of #5863 which was closed as "won't fix". See
 [https://code.djangoproject.com/ticket/5863#comment:28 this comment] for
 the rationale.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.3f63bff62fa688c94105d32895eac1e2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #23515: AUTH_USER_MODEL and admin.E108

2014-09-18 Thread Django
#23515: AUTH_USER_MODEL and admin.E108
---+---
 Reporter:  fizista|  Owner:  nobody
 Type:  Bug| Status:  new
Component:  contrib.admin  |Version:  1.7
 Severity:  Normal |   Keywords:  admin AUTH_USER_MODEL
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+---
 Description of the problem:
 In the administration panel you can not use relationships with the
 {{{__}}} lookup.

 I receive the following error:
 {{{
 : (admin.E108) The value of
 'list_display[1]' refers to 'user__first_name', which is not a callable,
 an attribute of 'UserProfileAdmin', or an attribute or method on
 'accounts.UserProfile'
 }}}

 Sample code that generates this error:

 {{{#!python

 class UserProfile(models.Model):

 user = models.OneToOneField(settings.AUTH_USER_MODEL,
 primary_key=True)

 class UserProfileAdmin(admin.ModelAdmin):

 list_display = (
 'user__id', 'user__first_name', 'user__last_name', 'user__email',)

 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.5ad32626e7e8de203c0fb4b999aea4ca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.