Hi All, Got a problem when trying to define an abstract class. Below there is an examle:
class PaymentData(models.Model): owner = models.ForeignKey(Customer, related_name="%s(class)s_related" ) class Meta: abstract = True When running 'python manage.py validate' receive an error: .... ....... File "/usr/lib/python2.3/site-packages/django/db/models/base.py", line 89, in add_to_class value.contribute_to_class(cls, name) File "/usr/lib/python2.3/site-packages/django/db/models/options.py", line 70, in contribute_to_class raise TypeError, "'class Meta' got invalid attribute(s): %s" % ','.join(meta_attrs.keys()) TypeError: 'class Meta' got invalid attribute(s): abstract What can be the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---