blob: d4b573d89cb0628070e1d7174335faebd50898f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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",])
|