Add index to typeclass path. Closes #1975

This commit is contained in:
Tehom 2019-10-25 08:33:14 -04:00
parent 0778ba1aac
commit 19d9811de2
5 changed files with 85 additions and 0 deletions

View file

@ -191,6 +191,7 @@ class TypedObject(SharedMemoryModel):
max_length=255,
null=True,
help_text="this defines what 'type' of entity this is. This variable holds a Python path to a module with a valid Evennia Typeclass.",
db_index=True,
)
# Creation date. This is not changed once the object is created.
db_date_created = models.DateTimeField("creation date", editable=False, auto_now_add=True)