def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Plugin, self).move_self_foreignkeys(orm)
     # migrate new article IDs to articlecontents
     migrate_foreignkey(self.app_label, self.model, 'articles_articlecontents', self.model, self.orm)
     # migrate new article IDs to oldrecipearticleredirect
     migrate_foreignkey(self.app_label, self.model, 'recipes_oldrecipearticleredirect', 'new_id', self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new quiz IDs to question
     migrate_foreignkey(self.app_label, self.model, 'polls_question', self.model, self.orm, null=True)
     # migrate new quiz IDs to results
     migrate_foreignkey(self.app_label, self.model, 'polls_result', self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new article IDs to question
     migrate_foreignkey(self.app_label, self.model, 'interviews_question', self.model, self.orm)
     # migrate new article IDs to interview_interviewees
     migrate_foreignkey(self.app_label, self.model, 'interviews_interview_interviewees', self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new quiz IDs to question
     migrate_foreignkey(self.app_label, self.model, 'polls_question', self.model, self.orm, null=True)
     # migrate new quiz IDs to results
     migrate_foreignkey(self.app_label, self.model, 'polls_result', self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # there is foreign key to authors called owner instead of ella's classic m2m rel
     # TODO migrate new gallery IDs to core_publishable_authors
     #migrate_foreignkey(self.app_label, self.model, 'core_publishable_authors', 'publishable_id', self.orm)
     # migrate new gallery IDs to galleryitem
     db.delete_unique('galleries_galleryitem', ('gallery','order'))
     migrate_foreignkey(self.app_label, self.model, 'galleries_galleryitem', self.model, self.orm)
     db.create_unique('galleries_galleryitem', ('gallery_id','order'))
Example #6
0
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new article IDs to articlecontents
     migrate_foreignkey(self.app_label, self.model, 'articles_articlecontents', self.model, self.orm)
     if 'recepty.recipes' in settings.INSTALLED_APPS:
         # migrate new article IDs to oldrecipearticleredirect
         migrate_foreignkey(self.app_label, self.model, 'recipes_oldrecipearticleredirect', 'new_id', self.orm)
Example #7
0
 def move_self_foreignkeys(self, orm):
     # there is foreign key to authors called owner instead of ella's classic m2m rel
     # TODO migrate new gallery IDs to core_publishable_authors
     #migrate_foreignkey(self.app_label, self.model, 'core_publishable_authors', 'publishable_id', self.orm)
     # migrate new gallery IDs to galleryitem
     db.delete_unique('galleries_galleryitem', ('gallery', 'order'))
     migrate_foreignkey(self.app_label, self.model, 'galleries_galleryitem',
                        self.model, self.orm)
     db.create_unique('galleries_galleryitem', ('gallery_id', 'order'))
Example #8
0
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new article IDs to question
     migrate_foreignkey(self.app_label, self.model, 'interviews_question',
                        self.model, self.orm)
     # migrate new article IDs to interview_interviewees
     migrate_foreignkey(self.app_label, self.model,
                        'interviews_interview_interviewees', self.model,
                        self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate new contest IDs to question
     migrate_foreignkey(self.app_label,
                        self.model,
                        'polls_question',
                        self.model,
                        self.orm,
                        null=True)
     # migrate new contest IDs to contestant
     migrate_foreignkey(self.app_label, self.model, 'polls_contestant',
                        self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Plugin, self).move_self_foreignkeys(orm)
     # migrate new media IDs to section
     migrate_foreignkey(self.app_label, self.model, 'media_section', self.model, self.orm)
     # migrate new media IDs to usage
     migrate_foreignkey(self.app_label, self.model, 'media_usage', self.model, self.orm)
     # TODO: this should be solved via plugins
     migrate_foreignkey(self.app_label, self.model, 'instruction_instruction', self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new media IDs to section
     migrate_foreignkey(self.app_label, self.model, 'media_section', self.model, self.orm)
     # migrate new media IDs to usage
     migrate_foreignkey(self.app_label, self.model, 'media_usage', self.model, self.orm)
     if 'jaknato.instruction' in settings.INSTALLED_APPS:
         # TODO: this should be solved via plugins
         migrate_foreignkey(self.app_label, self.model, 'instruction_instruction', self.model, self.orm)
Example #12
0
 def move_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).move_self_foreignkeys(orm)
     # migrate new media IDs to section
     migrate_foreignkey(self.app_label, self.model, 'media_section',
                        self.model, self.orm)
     # migrate new media IDs to usage
     migrate_foreignkey(self.app_label, self.model, 'media_usage',
                        self.model, self.orm)
     if 'jaknato.instruction' in settings.INSTALLED_APPS:
         # TODO: this should be solved via plugins
         migrate_foreignkey(self.app_label, self.model,
                            'instruction_instruction', self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate new contest IDs to question
     migrate_foreignkey(self.app_label, self.model, 'polls_question', self.model, self.orm, null=True)
     # migrate new contest IDs to contestant
     migrate_foreignkey(self.app_label, self.model, 'polls_contestant', self.model, self.orm)
 def move_self_foreignkeys(self, orm):
     # migrate new serie IDs to seriepart
     migrate_foreignkey(self.app_label, self.model, 'series_seriepart', self.model, self.orm)
Example #15
0
 def move_self_foreignkeys(self, orm):
     # migrate new serie IDs to seriepart
     migrate_foreignkey(self.app_label, self.model, 'series_seriepart',
                        self.model, self.orm)
Example #16
0
 def move_self_foreignkeys(self, orm):
     # migrate new topic IDs to topicthread
     migrate_foreignkey(self.app_label, self.model, 'discussions_topicthread', self.model, self.orm)