Correct admin in new location

This commit is contained in:
Griatch 2021-05-17 08:18:39 +02:00
parent 8e02be23e4
commit efe3a28343
15 changed files with 259 additions and 193 deletions

View file

@ -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

View 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'),
),
]

View file

@ -341,7 +341,7 @@ class TypedObject(SharedMemoryModel):
def nattributes(self):
return AttributeHandler(self, InMemoryAttributeBackend)
class Meta(object):
class Meta:
"""
Django setup info.
"""

View file

@ -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",