mirror of
https://github.com/django/django.git
synced 2025-08-02 01:53:15 +00:00
parent
6b6d13bf6e
commit
36e90d1f45
12 changed files with 154 additions and 71 deletions
|
@ -1,11 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib.postgres.operations import (
|
||||
HStoreExtension, UnaccentExtension,
|
||||
)
|
||||
from django.db import migrations
|
||||
|
||||
try:
|
||||
from django.contrib.postgres.operations import (
|
||||
HStoreExtension, UnaccentExtension,
|
||||
)
|
||||
except ImportError:
|
||||
from django.test import mock
|
||||
HStoreExtension = mock.Mock()
|
||||
UnaccentExtension = mock.Mock()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue