Hi, I have the need for the following inheritance customization:

class abstract(models.Model):
           field=models.Charfield()
           class Meta:
                   abstract=True

class A(abstract):
             I want the field 'field' to be required here.


class B(abstract):
             I want the field 'field' to have a blank=True value here,
that is, to not be required


Any ideas how to accomplish this? I was trying to use something like
self.__name__ with an expression, but self. does not seem to be
available to model fields.Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to