Exemplo n.º 1
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Plugin, self).alter_self_foreignkeys(orm)
     # migrate new article IDs to articlecontents
     alter_foreignkey_to_int('articles_articlecontents', 'article')
     # migrate new article IDs to oldrecipearticleredirect
     # TODO: this should be solved via plugins
     alter_foreignkey_to_int('recipes_oldrecipearticleredirect', 'new_id')
Exemplo n.º 2
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     # migrate new article IDs to articlecontents
     alter_foreignkey_to_int('articles_articlecontents', 'article')
     # migrate new article IDs to oldrecipearticleredirect
     if 'recepty.recipes' in settings.INSTALLED_APPS:
         # TODO: this should be solved via plugins
         alter_foreignkey_to_int('recipes_oldrecipearticleredirect', 'new_id')
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Plugin, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('media_section', 'media')
     alter_foreignkey_to_int('media_usage', 'media')
     # TODO: this should be solved via plugins
     alter_foreignkey_to_int('instruction_instruction', 'media')
Exemplo n.º 4
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('media_section', 'media')
     alter_foreignkey_to_int('media_usage', 'media')
     if 'jaknato.instruction' in settings.INSTALLED_APPS:
         # TODO: this should be solved via plugins
         alter_foreignkey_to_int('instruction_instruction', 'media')
Exemplo n.º 5
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('media_section', 'media')
     alter_foreignkey_to_int('media_usage', 'media')
     if 'jaknato.instruction' in settings.INSTALLED_APPS:
         # TODO: this should be solved via plugins
         alter_foreignkey_to_int('instruction_instruction', 'media')
 def alter_self_foreignkeys(self, orm):
     # there is foreign key to authors called owner instead of ella's classic m2m rel
     alter_foreignkey_to_int('galleries_gallery', 'owner')
     alter_foreignkey_to_int('galleries_galleryitem', 'gallery')
Exemplo n.º 7
0
 def alter_self_foreignkeys(self, orm):
     alter_foreignkey_to_int('series_seriepart', 'serie')
Exemplo n.º 8
0
 def alter_self_foreignkeys(self, orm):
     alter_foreignkey_to_int('series_seriepart', 'serie')
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('polls_question', 'quiz', null=True)
     alter_foreignkey_to_int('polls_result', 'quiz')
Exemplo n.º 10
0
 def alter_self_foreignkeys(self, orm):
     alter_foreignkey_to_int("series_seriepart", "serie")
Exemplo n.º 11
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('interviews_question', 'interview')
     alter_foreignkey_to_int('interviews_interview_interviewees',
                             'interview')
Exemplo n.º 12
0
 def alter_self_foreignkeys(self, orm):
     # there is foreign key to authors called owner instead of ella's classic m2m rel
     alter_foreignkey_to_int('galleries_gallery', 'owner')
     alter_foreignkey_to_int('galleries_galleryitem', 'gallery')
Exemplo n.º 13
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('interviews_question', 'interview')
     alter_foreignkey_to_int('interviews_interview_interviewees', 'interview')
Exemplo n.º 14
0
 def alter_self_foreignkeys(self, orm):
     # migrate authors as in base
     super(Migration, self).alter_self_foreignkeys(orm)
     alter_foreignkey_to_int('polls_question', 'quiz', null=True)
     alter_foreignkey_to_int('polls_result', 'quiz')
 def alter_self_foreignkeys(self, orm):
     alter_foreignkey_to_int('polls_question', 'contest', models.IntegerField(blank=True, null=True))
     alter_foreignkey_to_int('polls_contestant', 'contest', models.IntegerField(blank=True))
Exemplo n.º 16
0
 def alter_self_foreignkeys(self, orm):
     # migrate new topic IDs to topicthread
     alter_foreignkey_to_int('discussions_topicthread', 'topic')
Exemplo n.º 17
0
 def alter_self_foreignkeys(self, orm):
     alter_foreignkey_to_int('polls_question', 'contest',
                             models.IntegerField(blank=True, null=True))
     alter_foreignkey_to_int('polls_contestant', 'contest',
                             models.IntegerField(blank=True))