Django Form Inheritance
April 3, 2011
You can inherit forms classes when using Django. This example defines a superclass that allows the website field to be edited, whilst the subclass prevents this field being changed. The validation for latitude and longitude is common to both forms.
Note the use of inheritance on the Meta class.
CO_ORD_REGEX …