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.
Enso-Bot/venv/Lib/site-packages/south/introspection_plugins/django_timezones.py

22 lines
583 B
Python

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",])