Fix configure Tower in Tower to work with updated django-jsonfield.

This commit is contained in:
Chris Church
2016-11-15 00:22:55 -05:00
parent f5d3e1885e
commit 8dc5e7725c
7 changed files with 20 additions and 31 deletions

View File

@@ -314,9 +314,6 @@ class Command(BaseCommand):
self.stdout.write(' No settings to migrate!')
for name, db_value in to_migrate.items():
display_value = json.dumps(db_value, indent=4)
# Always encode "raw" strings as JSON.
if isinstance(db_value, basestring):
db_value = json.dumps(db_value)
setting = Setting.objects.filter(key=name, user__isnull=True).order_by('pk').first()
action = 'No Change'
if not setting: