This is a pretty basic model:
from django.db import models
class A(models.Model()):
a = models.CharField(maxlength=1000)
b = models.CharField(maxlength=1000)
def __str__(self):
return self.a
class User(models.Model()):
username = models.CharField(maxlength=50)
def __str__(self):
return self.username
and, when I validate it, I get the following error:
'Model' object has no attribute '_meta'
Anyone know whats going on?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---