mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
Fixed the migrations to get to a baseline version you can log into.
This commit is contained in:
parent
c676c9965f
commit
a4042920e0
7 changed files with 75 additions and 72 deletions
|
|
@ -136,6 +136,8 @@ class SharedMemoryModelBase(ModelBase):
|
|||
# dynamically create the wrapper properties for all fields not already handled
|
||||
for field in cls._meta.fields:
|
||||
fieldname = field.name
|
||||
if not fieldname.startswith("db_"):
|
||||
continue
|
||||
wrappername = fieldname == "id" and "dbid" or fieldname.replace("db_", "")
|
||||
if not hasattr(cls, wrappername):
|
||||
# makes sure not to overload manually created wrappers on the model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue