1 from south.creator.freezer import prep_for_freeze
2 from django.conf import settings
3 from django.db import models
6 person_model = getattr(settings, 'PHILO_PERSON_MODULE', 'auth.User')
9 def freeze_person_model():
11 app_label, model = person_model.split('.')
13 raise ValueError("Invalid PHILO_PERSON_MODULE definition: %s" % person_model)
15 model = models.get_model(app_label, model.lower())
18 raise ValueError("PHILO_PERSON_MODULE not found: %s" % person_model)
20 return prep_for_freeze(model)
23 frozen_person = freeze_person_model()