Attaching custom migartion operations to model definition.

36 views
Skip to first unread message

Mārtiņš Šulcs

unread,
Dec 2, 2016, 6:02:08 PM12/2/16
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.

Reply all
Reply to author
Forward
0 new messages