I updated to [8373] and got this error. It went away when I commented out admin.autodiscover
, but I'm sure it's not just that that's affected. Brian Rosner mentioned that it might have to do with some changes that Jacob had made earlier today. Here's my traceback.
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
77. request.path_info)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve
178. for pattern in self.urlconf_module.urlpatterns:
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
197. self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
File "/var/www/projectrenova/../projectrenova/urls.py" in <module>
11. admin.autodiscover()
File "/usr/lib/python2.5/site-packages/django/contrib/admin/__init__.py" in autodiscover
40. __import__("%s.admin" % app)
File "/var/www/projectrenova/applications/blog/admin.py" in <module>
19. admin.site.register(Entry, EntryAdmin)
File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" in register
91. validate(admin_class, model)
File "/usr/lib/python2.5/site-packages/django/contrib/admin/validation.py" in validate
25. validate_base(cls, model)
File "/usr/lib/python2.5/site-packages/django/contrib/admin/validation.py" in validate_base
180. check_formfield(cls, model, opts, "fieldsets[%d][1]['fields']" % idx, field)
File "/usr/lib/python2.5/site-packages/django/contrib/admin/validation.py" in check_formfield
261. fields = fields_for_model(model)
File "/usr/lib/python2.5/site-packages/django/forms/models.py" in fields_for_model
145. formfield = formfield_callback(f)
File "/usr/lib/python2.5/site-packages/django/forms/models.py" in <lambda>
124. def fields_for_model(model, fields=None, exclude=None, formfield_callback=lambda f: f.formfield()):
File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py" in formfield
760. return super(PositiveSmallIntegerField, self).formfield(**defaults)
File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py" in formfield
678. return super(IntegerField, self).formfield(**defaults)
File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py" in formfield
318. return form_class(**defaults)
File "/usr/lib/python2.5/site-packages/django/forms/fields.py" in __init__
666. super(TypedChoiceField, self).__init__(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/forms/fields.py" in __init__
621. help_text, *args, **kwargs)
Exception Type: TypeError at /
Exception Value: __init__() got an unexpected keyword argument 'min_value'
I have this same problem when trying to edit a model with PositiveIntegerField in admin. Using r8777.