Done. No change.
What is also very bizarre is that *not* having a Meta class would make the
"Restaurant" test (tests/model_inheritance/models.py : Line 107) break
badly; class Restaurant has a Meta that subclasses the Meta of class
Rating. So if Meta does not exist... well you see the problem. In
hi brandon
try removing (object) from your meta class declaration
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To
print Foo.Meta throws AttributeError: type object 'Foo' has no attribute
'Meta' for *some* classes.
Reproduce it by:
from django.db import models
class Foo(models.Model):
value = models.CharField(max_length=256,blank=True)
class Meta(object):
pass
Then makemigrations and migrat
3 matches
Mail list logo