Correct admin in new location
This commit is contained in:
parent
8e02be23e4
commit
efe3a28343
15 changed files with 259 additions and 193 deletions
|
|
@ -161,6 +161,7 @@ class InMemoryAttribute(IAttribute):
|
|||
class Attribute(IAttribute, SharedMemoryModel):
|
||||
"""
|
||||
This attribute is stored via Django. Most Attributes will be using this class.
|
||||
|
||||
"""
|
||||
|
||||
#
|
||||
|
|
@ -219,7 +220,7 @@ class Attribute(IAttribute, SharedMemoryModel):
|
|||
|
||||
class Meta(object):
|
||||
"Define Django meta options"
|
||||
verbose_name = "Evennia Attribute"
|
||||
verbose_name = "Attribute"
|
||||
|
||||
# Wrapper properties to easily set database fields. These are
|
||||
# @property decorators that allows to access these fields using
|
||||
|
|
|
|||
18
evennia/typeclasses/migrations/0014_alter_tag_db_category.py
Normal file
18
evennia/typeclasses/migrations/0014_alter_tag_db_category.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.3 on 2021-05-17 06:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('typeclasses', '0013_auto_20191015_1922'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='tag',
|
||||
name='db_category',
|
||||
field=models.CharField(blank=True, db_index=True, help_text='tag category', max_length=64, null=True, verbose_name='category'),
|
||||
),
|
||||
]
|
||||
|
|
@ -341,7 +341,7 @@ class TypedObject(SharedMemoryModel):
|
|||
def nattributes(self):
|
||||
return AttributeHandler(self, InMemoryAttributeBackend)
|
||||
|
||||
class Meta(object):
|
||||
class Meta:
|
||||
"""
|
||||
Django setup info.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class Tag(models.Model):
|
|||
"key", max_length=255, null=True, help_text="tag identifier", db_index=True
|
||||
)
|
||||
db_category = models.CharField(
|
||||
"category", max_length=64, null=True, help_text="tag category", db_index=True
|
||||
"category", max_length=64, null=True, blank=True, help_text="tag category", db_index=True
|
||||
)
|
||||
db_data = models.TextField(
|
||||
"data",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue