Adding initial data via Django's syncdb facility. We will no longer distribute a SQLite DB in the near future in favor of this cross-platform alternative. Also in this commit is a crash fix for @dig with SQLite.
This commit is contained in:
parent
26a354204c
commit
3292405fcb
7 changed files with 38 additions and 1 deletions
|
|
@ -179,7 +179,10 @@ def create_object(odat):
|
|||
new_object.home = odat["location"]
|
||||
|
||||
new_object.save()
|
||||
new_object.move_to(odat['location'])
|
||||
|
||||
# Rooms have a NULL location.
|
||||
if not new_object.is_room():
|
||||
new_object.move_to(odat['location'])
|
||||
|
||||
return new_object
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue