Skip to content

Commit

Permalink
regenerate migrations from 0033
Browse files Browse the repository at this point in the history
copy metadata from old fields to new fields
  • Loading branch information
yomguy committed Dec 16, 2014
1 parent 981485e commit a78c21e
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 3,189 deletions.
Expand Up @@ -26,9 +26,9 @@ def forwards(self, orm):
corpus.save()

if hasattr(MediaFonds, 'description'):
for fonds in MediaFonds.objects.all():
fonds.descriptions = fonds.description
fonds.save()
for fonds in MediaFonds.objects.all():
fonds.descriptions = fonds.description
fonds.save()

def backwards(self, orm):
# Deleting field 'MediaCorpus.descriptions'
Expand Down

0 comments on commit a78c21e

Please sign in to comment.