Exemple #1
0
 def register_regions(cls, *args, **kwargs):
     # Register regions for translations too
     super(Project, cls).register_regions(*args, **kwargs)
     if 'zipfelchappe.translations' in settings.INSTALLED_APPS:
         from zipfelchappe.translations.models import ProjectTranslation
         ProjectTranslation.register_regions(*args, **kwargs)