From fa58450a9ab8a1bdd2a5090b51b00078fd85ffa6 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 23 Nov 2019 11:08:45 +0000 Subject: Fixed #31468 -- Allowed specifying migration filename in Operation. This adds also suggested filename for many built-in operations. --- django/contrib/postgres/operations.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'django/contrib/postgres/operations.py') diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py index 740911d059..b25438b826 100644 --- a/django/contrib/postgres/operations.py +++ b/django/contrib/postgres/operations.py @@ -55,6 +55,10 @@ class CreateExtension(Operation): def describe(self): return "Creates extension %s" % self.name + @property + def migration_name_fragment(self): + return 'create_extension_%s' % self.name + class BloomExtension(CreateExtension): -- cgit v1.2.1