diff options
author | Adam Johnson <me@adamj.eu> | 2019-11-23 11:08:45 +0000 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-28 11:42:53 +0200 |
commit | fa58450a9ab8a1bdd2a5090b51b00078fd85ffa6 (patch) | |
tree | 564cf0f25dda6c27ef94c57f276db42cf61abbd2 /django/contrib/postgres/operations.py | |
parent | 5bd585a82dd963b3d8fdac2b37ff5276f71c5b27 (diff) | |
download | django-fa58450a9ab8a1bdd2a5090b51b00078fd85ffa6.tar.gz |
Fixed #31468 -- Allowed specifying migration filename in Operation.
This adds also suggested filename for many built-in operations.
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r-- | django/contrib/postgres/operations.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): |