Have every class inherit from object.
This commit is contained in:
parent
a8127b0f41
commit
de0e42240c
14 changed files with 33 additions and 22 deletions
|
|
@ -96,7 +96,7 @@ class Attribute(SharedMemoryModel):
|
|||
def locks(self):
|
||||
return LockHandler(self)
|
||||
|
||||
class Meta:
|
||||
class Meta(object):
|
||||
"Define Django meta options"
|
||||
verbose_name = "Evennia Attribute"
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class TypeclassBase(SharedMemoryModelBase):
|
|||
|
||||
# typeclass proxy setup
|
||||
if not "Meta" in attrs:
|
||||
class Meta:
|
||||
class Meta(object):
|
||||
proxy = True
|
||||
app_label = attrs.get("__applabel__", "typeclasses")
|
||||
attrs["Meta"] = Meta
|
||||
|
|
@ -285,7 +285,7 @@ class TypedObject(SharedMemoryModel):
|
|||
return NAttributeHandler(self)
|
||||
|
||||
|
||||
class Meta:
|
||||
class Meta(object):
|
||||
"""
|
||||
Django setup info.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Tag(models.Model):
|
|||
# this is None, alias or permission
|
||||
db_tagtype = models.CharField('tagtype', max_length=16, null=True, help_text="overall type of Tag", db_index=True)
|
||||
|
||||
class Meta:
|
||||
class Meta(object):
|
||||
"Define Django meta options"
|
||||
verbose_name = "Tag"
|
||||
unique_together = (('db_key', 'db_category', 'db_tagtype'),)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue