[Django] #25449: django.contrib.gis.admin is missing @register

6 views
Skip to first unread message

Django

unread,
Sep 23, 2015, 4:53:04 AM9/23/15
to django-...@googlegroups.com
#25449: django.contrib.gis.admin is missing @register
-------------------------------+--------------------
Reporter: manelclos | Owner: nobody
Type: Uncategorized | Status: new
Component: GIS | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
This code:
{{{
from django.contrib.gis import admin

@admin.register(MyModel)
class MyModelAdmin(....)
...
}}}

Produces: AttributeError: 'module' object has no attribute 'register'

Plain admin works ok:
{{{
from django.contrib import admin

@admin.register(MyModel)
class MyModelAdmin(....)
...
}}}

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

Django

unread,
Sep 23, 2015, 7:09:34 AM9/23/15
to django-...@googlegroups.com
#25449: django.contrib.gis.admin is missing @register
-------------------------------------+-------------------------------------
Reporter: manelclos | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: GIS | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => fixed
* needs_tests: => 0
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization


Comment:

Fixed in cc3d2fa73102e8ee29c401438bd849eea725198a (for Django 1.9).

--
Ticket URL: <https://code.djangoproject.com/ticket/25449#comment:1>

Reply all
Reply to author
Forward
0 new messages