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:
Greg Taylor 2007-04-25 14:47:33 +00:00
parent 26a354204c
commit 3292405fcb
7 changed files with 38 additions and 1 deletions

View file

@ -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