Opened 15 years ago
Closed 15 years ago
#13375 closed (duplicate)
django model validation error
Reported by: | David Davis | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | models, model validation | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm having a problem with django svn 12995 that does not exist in 12852. It appears that model validation is broken...
Start a django project 'testme':
startproject testme
inside testme Start an app 'testapp':
manage.py startapp testapp
edit testme/settings.py and add to installed applications:
'django.contrib.comments', 'testapp',
inside testme/testapp/models.py, simply add:
from django.contrib.comments.models import Comment
Run anything that validates models (syncdb, shell, etc):
run manage.py shell
Will show the model validation error:
error: cannot import name Comment
This worked in svn 12852 but is broken in 12995
Since the comments framework was last changed before 12852, I believe it is in the model validation.
Change History (4)
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
comment:4 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Looks like it happend in revision 12976