mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
583 B
Python
22 lines
583 B
Python
5 years ago
|
from south.modelsinspector import add_introspection_rules
|
||
|
from django.conf import settings
|
||
|
|
||
|
if "timezones" in settings.INSTALLED_APPS:
|
||
|
try:
|
||
|
from timezones.fields import TimeZoneField
|
||
|
except ImportError:
|
||
|
pass
|
||
|
else:
|
||
|
rules = [
|
||
|
(
|
||
|
(TimeZoneField, ),
|
||
|
[],
|
||
|
{
|
||
|
"blank": ["blank", {"default": True}],
|
||
|
"max_length": ["max_length", {"default": 100}],
|
||
|
},
|
||
|
),
|
||
|
]
|
||
|
add_introspection_rules(rules, ["^timezones\.fields",])
|
||
|
|