Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change deconstruct logic to work with full generated migration data
--HG--
branch : deconstruct
  • Loading branch information
Neil Muller committed Sep 5, 2014
1 parent 9e3ebb3 commit b2d3ba4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion markitup/fields.py
Expand Up @@ -104,7 +104,10 @@ def value_to_string(self, obj):
def deconstruct(self):
name, path, args, kwargs = super(MarkupField, self).deconstruct()
# Force add_rendered_field to False for migrations
kwargs['no_rendered_field'] = self.add_rendered_field
# deconstruct can be called multiple times during the migration,
# so setting it to self.add_rendered_field, as done for south
# migrations, may do the wrong thing.
kwargs['no_rendered_field'] = True
return name, path, args, kwargs

# this method should be renamed to get_prep_value but
Expand Down

0 comments on commit b2d3ba4

Please sign in to comment.