Metadata-Version: 1.1
Name: django-modelmultivalue
Version: 0.1
Summary: A form field to create a related model sub-form
Home-page: https://github.com/todd-dembrey/django-modelmultivalue
Author: Todd Dembrey
Author-email: todd.dembrey@gmail.com
License: MIT License
Description: ====================
        ModelMultiValueField
        ====================
        
        ModelMultiValueField provides the ability to create sub-forms for foreign models without having to worry about writing
        the ModelMultiValueField subclasses.
        
        Quick start
        -----------
        
        1. Add "modelmultivalue" to your INSTALLED_APPS setting like this::
        
            INSTALLED_APPS = [
                ...
                'modelmultivalue',
            ]
        
        2. Add the ModelMultiValueField to a model form
        
            a. All django version::
        
                from django import forms
                from modelmultivalue import ModelMultiValueField
        
                class ExampleModelForm(forms.ModelForm):
                    class Meta:
                        model = Example
                        fields = '__all__'
        
                    ForeignKeyField = ModelMultiValueField(model=ForeignKey
        
            b. for Django>=1.9::
        
                from django import forms
                from modelmultivalue import ModelMultiValueField
        
                class ExampleModelForm(forms.ModelForm):
                    class Meta:
                        model = Example
                        fields = '__all__'
                        field_class_field={
                            'ForeignKeyField': ModelMultiValueField
                        }
        
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
