This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
django
Watch
0
Star
0
Fork
0
You've already forked django
mirror of
https://github.com/django/django.git
synced
2024-12-01 15:42:04 +01:00
Code
Issues
Releases
Wiki
Activity
4178488881
django
/
tests
/
admin_autodiscover
/
models.py
6 lines
102 B
Python
Raw
Normal View
History
Unescape
Escape
Fixed #8245 -- Added a LOADING flag to autodiscover to prevent an admin.py module with errors from raising a spurious AlreadyRegistered exception in a subsequent call to autodiscover. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-23 19:25:24 +01:00
from
django
.
db
import
models
Convert much of the regression tests to use absolute imports. There's still work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13 20:51:33 +02:00
Fixed #8245 -- Added a LOADING flag to autodiscover to prevent an admin.py module with errors from raising a spurious AlreadyRegistered exception in a subsequent call to autodiscover. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-23 19:25:24 +01:00
class
Story
(
models
.
Model
)
:
title
=
models
.
CharField
(
max_length
=
10
)
Copy Permalink