mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 23:36:30 +01:00
Run Migrations. Migrated to new Attribute schema, converting old attributes. Not fully tested yet.
This commit is contained in:
parent
a1d818f8aa
commit
2a7c45d6e8
18 changed files with 825 additions and 55 deletions
|
|
@ -40,15 +40,15 @@ __all__ = ("ScriptDB",)
|
|||
#
|
||||
#------------------------------------------------------------
|
||||
|
||||
class ScriptAttribute(Attribute):
|
||||
"Attributes for ScriptDB objects."
|
||||
db_obj = models.ForeignKey("ScriptDB", verbose_name='script')
|
||||
|
||||
class Meta:
|
||||
"Define Django meta options"
|
||||
verbose_name = "Script Attribute"
|
||||
verbose_name_plural = "Script Attributes"
|
||||
|
||||
#class ScriptAttribute(Attribute):
|
||||
# "Attributes for ScriptDB objects."
|
||||
# db_obj = models.ForeignKey("ScriptDB", verbose_name='script')
|
||||
#
|
||||
# class Meta:
|
||||
# "Define Django meta options"
|
||||
# verbose_name = "Script Attribute"
|
||||
# verbose_name_plural = "Script Attributes"
|
||||
#
|
||||
## attach cache handlers for attribute lookup
|
||||
#post_init.connect(attr_post_init, sender=ScriptAttribute, dispatch_uid="scriptattrcache")
|
||||
#pre_delete.connect(attr_pre_delete, sender=ScriptAttribute, dispatch_uid="scriptattrcache")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue