Beispiel #1
0
 def create_content_type(cls, model, *args, **kwargs):
     # Registers content type for translations too
     super(Project, cls).create_content_type(model, *args, **kwargs)
     if 'zipfelchappe.translations' in settings.INSTALLED_APPS:
         from zipfelchappe.translations.models import ProjectTranslation
         kwargs['class_name'] = 'Translated%s' % model._meta.object_name
         ProjectTranslation.create_content_type(model, *args, **kwargs)
Beispiel #2
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)