#11779: Validation doesn't detect import errors
---------------------------+------------------------------------------------
 Reporter:  Afief          |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 I have a model with a bug in it(I imported user instead of User from
 django.contrib.auth.models), here is the code:

 from django.db import models
 from django.contrib.auth.models import user

 class myprofile(models.Model):
     user = models.ForeignKey(user, unique=True)

 When running `manage.py validate` I get no errors, but when asking for the
 app's sql I am told that I probably didn't install it. What should happen
 is that the model shouldn't validate(or at least be told that the app is
 found but contains errors)

 $ python manage.py validate
 0 errors found

 $ python manage.py sql myprofile
 Error: App with label myprofile could not be found. Are you sure your
 INSTALLED_APPS setting is correct?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11779>
Django <http://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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to