AUTH_USER_MODEL and GeoManager
|Reported by:||email.max.bucher@…||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:|
|Severity:||Release blocker||Keywords:||AUTH_USER_MODEL GeoManager|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (4)
comment:1 Changed 21 months ago by claudep
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 21 months ago by ptone
- Resolution set to worksforme
- Status changed from new to closed