If a model has a ManyToMany or a GenericRelationship an error is thrown. It took me a while to figure out what was throwing it as I was messing with taggit on an existing large project. Once I found it I tested it on a brand new application. Adding either of the fields makes it throw the following error. I'll be working on a fix after lunch but just a heads up.
Unhandled exception in thread started by <function inner_run at 0x1007b2938>
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/django/core/management/commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/Library/Python/2.6/site-packages/django/core/management/validation.py", line 28, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/Library/Python/2.6/site-packages/django/db/models/loading.py", line 131, in get_app_errors
self._populate()
File "/Library/Python/2.6/site-packages/django/db/models/loading.py", line 58, in _populate
self.load_app(app_name, True)
File "/Library/Python/2.6/site-packages/django/db/models/loading.py", line 74, in load_app
models = import_module('.models', app_name)
File "/Library/Python/2.6/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/Users/maple/Projects/test/food/models.py", line 6, in <module>
class Fruit(models.Model):
File "/Library/Python/2.6/site-packages/django/db/models/base.py", line 92, in __new__
new_class.add_to_class(obj_name, obj)
File "/Library/Python/2.6/site-packages/django/db/models/base.py", line 213, in add_to_class
value.contribute_to_class(cls, name)
File "/Library/Python/2.6/site-packages/taggit/managers.py", line 42, in contribute_to_class
cls._meta.add_field(self)
File "/Library/Python/2.6/site-packages/django/db/models/options.py", line 150, in add_field
self.local_many_to_many.insert(bisect(self.local_many_to_many, field), field)
File "/Library/Python/2.6/site-packages/django/db/models/fields/__init__.py", line 102, in __cmp__
return cmp(self.creation_counter, other.creation_counter)
AttributeError: 'TaggableManager' object has no attribute 'creation_counter'