#19185: AUTH_USER_MODEL and GeoManager
-------------------------------------+-------------------------------------
     Reporter:  email.max.bucher@…   |      Owner:  nobody
         Type:  Uncategorized        |     Status:  new
    Component:  Database layer       |    Version:
  (models, ORM)                      |   Keywords:  AUTH_USER_MODEL
     Severity:  Release blocker      |  GeoManager
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 I'm currently working on getting to run an 1.4-application (using a
 profile model) on 1.5dev, using the the new (eagerly awaited by me)
 custom user model.
 I used django.contrib.gis.db.GeoManager with my former profile-Model and
 so I wanted to use it with my new custom user model, too.
 The following exception was thrown:
 " 'GeoManager' object has no attribute 'get_by_natural_key' "
 Hacking contrib/gis/db/models/manager.py, making GeoManager subclass
 'django.contrib.auth.models.UserManager'
 instead of 'Manager' solved it for the moment.
 Maybe this is something that hasn't been thought of yet.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19185>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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 https://groups.google.com/groups/opt_out.


Reply via email to