On 10/15/2014 06:52 AM, Michael wrote:
> Also, ContentType.objects.get_for_model does not work ('Manager' object
> has no attribute 'get_for_model').Not sure, but it might work to instead call `django.contrib.auth.management.create_permissions(...)` in the migration? You'll need to get hold of the AppConfig for the app whose permissions you want to create; you should be able to get this from the `apps` argument to your data migration. Carl -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/543EAA69.5020608%40oddbird.net. For more options, visit https://groups.google.com/d/optout.
