#8664: PhoneNumberField should be moved to django.contrib.localflavor.us
---------------------------------------------------------------+------------
          Reporter:  Piotr Lewandowski <[EMAIL PROTECTED]>  |         Owner:  
gkelly        
            Status:  assigned                                  |     Milestone: 
 1.0           
         Component:  django.contrib.localflavor                |       Version: 
 SVN           
        Resolution:                                            |      Keywords: 
 us localflavor
             Stage:  Design decision needed                    |     Has_patch: 
 1             
        Needs_docs:  0                                         |   Needs_tests: 
 0             
Needs_better_patch:  1                                         |  
---------------------------------------------------------------+------------
Changes (by gkelly):

  * needs_better_patch:  0 => 1

Comment:

 Something wrong with the patch, no time to debug right now:

 {{{
 ./runtests.py --settings=settings model_forms

 Error while importing model_forms:  File "./runtests.py", line 130, in
 django_tests
     mod = load_app(model_label)
   File "/sw/lib/python2.5/site-packages/django/db/models/loading.py", line
 72, in load_app
     mod = __import__(app_name, {}, {}, ['models'])
   File
 "/usr/local/src/django/trunk/tests/modeltests/model_forms/models.py", line
 72, in <module>
     class PhoneNumber(models.Model):
   File "/sw/lib/python2.5/site-packages/django/db/models/base.py", line
 84, in __new__
     new_class.add_to_class(obj_name, obj)
   File "/sw/lib/python2.5/site-packages/django/db/models/base.py", line
 135, in add_to_class
     value.contribute_to_class(cls, name)
 TypeError: Error when calling the metaclass bases
     unbound method contribute_to_class() must be called with
 PhoneNumberField instance as first argument (got ModelBase instance
 instead)
 Traceback (most recent call last):
   File "./runtests.py", line 183, in <module>
     django_tests(int(options.verbosity), options.interactive, args)
   File "./runtests.py", line 153, in django_tests
     failures = run_tests(test_labels, verbosity=verbosity,
 interactive=interactive, extra_tests=extra_tests)
   File "/sw/lib/python2.5/site-packages/django/test/simple.py", line 131,
 in run_tests
     app = get_app(label)
   File "/sw/lib/python2.5/site-packages/django/db/models/loading.py", line
 122, in get_app
     raise ImproperlyConfigured, "App with label %s could not be found" %
 app_label
 django.core.exceptions.ImproperlyConfigured: App with label model_forms
 could not be found

 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8664#comment:7>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to