Added inlines and fixed admin interface to not allow editing User once a Player is created.

This commit is contained in:
Griatch 2011-10-04 21:14:41 +02:00
parent 6ddfdd85f0
commit 1291509d03
3 changed files with 91 additions and 53 deletions

View file

@ -148,7 +148,7 @@ class PlayerDB(TypedObject):
# this is the one-to-one link between the customized Player object and
# this profile model. It is required by django.
user = models.ForeignKey(User, unique=True,
help_text="The User object holds django-related authentication. Each Player must have a unique User account linked to them at all times.")
help_text="The <I>User</I> object holds django-specific authentication for each Player. A unique User should be created and tied to each Player, the two should never be switched or changed around. The User will be deleted automatically when the Player is.")
# the in-game object connected to this player (if any).
# Use the property 'obj' to access.
db_obj = models.ForeignKey("objects.ObjectDB", null=True, verbose_name="character", help_text='In-game object.')