As with most custom types, I needed to add:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^django\.contrib\.auth\.models\.Foo"])
Now when I start my app, I get:
...
File "/Users/vilhuber/src/nukona/git/Django/django/contrib/auth/models.py", line 590, in <module>
from south.modelsinspector import add_introspection_rules
File "/Library/Python/2.6/site-packages/South-0.7.3-py2.6.egg/south/modelsinspector.py", line 17, in <module>
from django.contrib.contenttypes import generic
File "/Users/vilhuber/src/nukona/git/Django/django/contrib/contenttypes/generic.py", line 13, in <module>
from django.contrib.admin.options import InlineModelAdmin, flatten_fieldsets
File "/Users/vilhuber/src/nukona/git/Django/django/contrib/admin/__init__.py", line 6, in <module>
from django.contrib.admin.sites import AdminSite, site
File "/Users/vilhuber/src/nukona/git/Django/django/contrib/admin/sites.py", line 3, in <module>
from django.contrib.admin import ModelAdmin, actions
ImportError: cannot import name actions
If I remove the instrospection rule and import, it starts fine, but then of course manage.py schemamigration complains.
What's the right way to do this? Is there a way I can detect if this is being included as part of a schememigration, i.e. a conditional include?
jan
--
You received this message because you are subscribed to the Google Groups "South Users" group.
To post to this group, send email to south...@googlegroups.com.
To unsubscribe from this group, send email to south-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/south-users?hl=en.