comparison band/management/commands/import_old_band.py @ 89:b7cdfdde3999

For Django 1.5: replace django's simplejson with json.
author Brian Neal <bgneal@gmail.com>
date Tue, 27 Aug 2013 19:53:31 -0500
parents e2868ad47a1e
children
comparison
equal deleted inserted replaced
87:978a08c838d8 89:b7cdfdde3999
2 import_old_band.py - For importing band models from the older version of this 2 import_old_band.py - For importing band models from the older version of this
3 website. 3 website.
4 4
5 """ 5 """
6 import datetime 6 import datetime
7 import json
7 8
8 from django.core.management.base import LabelCommand 9 from django.core.management.base import LabelCommand
9 from django.utils import simplejson as json
10 from django.utils.html import linebreaks
11 from photologue.models import Photo 10 from photologue.models import Photo
12 11
13 from band.models import (Member, Gear, RecordLabel, Album, AlbumTrack, 12 from band.models import (Member, Gear, RecordLabel, Album, AlbumTrack,
14 LabelRelease, AlbumMerchant, Merchandise) 13 LabelRelease, AlbumMerchant, Merchandise)
15 14