#25554: Django permissions cause data migration depending on permissions to fail
-------------------------------+--------------------
Reporter: dirkcuys | Owner: nobody
Type: Uncategorized | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I'm using a data migration to create a Group. Later I'm adding some
permissions to a model and in a next migration I wish to assign those
permissions to the group I created in another data migration.
Since permissions are only added to the database using the post_migrate
signal, my migrations fail when trying to apply all of them at once. If I
apply them 1 for 1, it doesn't fail since the permissions are created
before running the next migrations
--
Ticket URL: <https://code.djangoproject.com/ticket/25554>
Django <https://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 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.8eb1cd72158a7bedf75e4c75c3433a74%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.