-
-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make phonenumbers and django-phonenumber-field optional
- Loading branch information
1 parent
ebd1d78
commit a8d295d
Showing
4 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
# Generated by Django 1.9.2 on 2016-02-05 17:27 | ||
|
||
import phonenumber_field.modelfields | ||
from django.conf import settings | ||
from django.db import migrations | ||
|
||
if 'two_factor.plugins.phonenumber' in settings.INSTALLED_APPS: | ||
import phonenumber_field.modelfields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('two_factor', '0003_auto_20150817_1733'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='phonedevice', | ||
name='number', | ||
field=phonenumber_field.modelfields.PhoneNumberField(max_length=128), | ||
), | ||
] | ||
if 'two_factor.plugins.phonenumber' in settings.INSTALLED_APPS: | ||
operations = [ | ||
migrations.AlterField( | ||
model_name='phonedevice', | ||
name='number', | ||
field=phonenumber_field.modelfields.PhoneNumberField(max_length=128), | ||
), | ||
] | ||
else: | ||
operations = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters