Attaching custom migartion operations to model definition.
40 views
Skip to first unread message
Mārtiņš Šulcs
unread,
Dec 2, 2016, 6:02:08 PM12/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers (Contributions to Django itself)
Hello,
I'd like to mark my models in some declerative way(meta option, base class) and make autodetector insert custom migration operations after CreateModel, DeleteModel. For this particular use case i have generation of triggers in mind but i can think of other uses cases when this could be useful. Is this possible in non-intrusive/ugly way.