From 9a187b48ff5601a31a2c00134ed41928881bb24a Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 9 Apr 2013 19:43:27 +0200 Subject: [PATCH] Made admin interface not crash with the removal of the direct db_obj field on players. --- src/players/admin.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/players/admin.py b/src/players/admin.py index ab63684cc..f826531a9 100644 --- a/src/players/admin.py +++ b/src/players/admin.py @@ -97,10 +97,7 @@ class PlayerInline(admin.StackedInline): ("In-game Player data", {'fields':('db_typeclass_path', 'db_cmdset_storage'), 'description':"These fields define in-game-specific properties for the Player object in-game."}), - ("Evennia In-game Character", - {'fields':('db_obj',), - 'description': "To actually play the game, a Player must control a Character. This could be added in-game instead of from here if some sort of character creation system is in play. If not, you should normally create a new Character here rather than assigning an existing one. Observe that the admin does not check for puppet-access rights when assigning Characters! If not creating a new Character, make sure the one you assign is not puppeted by someone else!"})) - + ) extra = 1 max_num = 1 @@ -146,10 +143,4 @@ class UserAdmin(BaseUserAdmin): player_dbobj=playerobj, create_character=False) -# if playerdb.db_obj: -# playerdb.db_obj.db_player = playerdb -# playerdb.db_obj.save() - - #assert False, (form.instance, form.instance.get_profile()) - admin.site.register(User, UserAdmin)