Metadata-Version: 1.1
Name: django-specifications
Version: 0.1.0
Summary: Additional, dynamic fields for all Django models.
Home-page: http://github.com/matthiask/django-specifications/
Author: Matthias Kestenholz
Author-email: mk@feinheit.ch
License: BSD License
Description: =====================
        django-specifications
        =====================
        
        This module offers an easy way to attach auxiliary information to Django
        models. It allows configuring custom forms through the administration
        interface.
        
        Usage
        =====
        
        1. Add ``'specifications'`` to ``INSTALLED_APPS``.
        2. Create a ``ForeignKey('specifications.Specification')`` on the model you
           want to use specifications with. The foreign key can be nullable or
           required, as you wish.
        3. Create the place where the specification field data is actually stored::
        
               from specifications.models import SpecificationValueFieldBase
        
               class MyObjectField(SpecificationValueFieldBase):
                   parent = models.ForeignKey(MyObject, related_name='fields')
        
                   class Meta:
                       ordering = ['field__group__ordering', 'ordering']
        
        4. Inherit from ``FormWithSpecification`` when creating your ``ModelForm``::
        
               from specifications.forms import FormWithSpecification
        
               class MyObjectForm(FormWithSpecification):
                   class Meta:
                       model = MyObject
        
        5. There is no fifth step.
        
        The fields are available after saving a specification. The specification can
        be changed, but you risk losing data if you do this.
        
Platform: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
