Features: store titles as a JSONField and add loadmap and dumpmap support
This commit is contained in:
parent
49c2270b84
commit
be62b14669
11 changed files with 101 additions and 27 deletions
|
@ -18,7 +18,7 @@ class Level(models.Model):
|
|||
return 'levels/%s.json' % self.name
|
||||
|
||||
@classmethod
|
||||
def fromfile(cls, data):
|
||||
def fromfile(cls, data, file_path):
|
||||
if 'altitude' not in data:
|
||||
raise ValueError('missing altitude.')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue