Metadata-Version: 1.1
Name: django-multipleselectionfield
Version: 0.9.0
Summary: Django multiple choices field
Home-page: https://github.com/onekiloparsec/django-multipleselectionfield
Author: Cédric Foellmi
Author-email: cedric@onekilopars.ec
License: LGPL 3
Description: django-multipleselectionfield
        =======================
        
        [![Build Status](https://travis-ci.org/onekiloparsec/django-multipleselectionfield.png?branch=master)](https://travis-ci.org/onekiloparsec/django-multipleselectionfield)
        [![Coverage](https://coveralls.io/repos/onekiloparsec/django-multipleselectionfield/badge.png?branch=master)](https://coveralls.io/r/onekiloparsec/django-multipleselectionfield)
        [![PyPi](https://pypip.in/d/django-multipleselectionfield/badge.png)](https://pypi.python.org/pypi/django-multipleselectionfield)
        
        A new model and form field. With this you can get a multiple select from a choices
        
        Initial code got from https://github.com/goinnn/django-multiselectfield by Pablo Martin
        
        But after more than 2 years without activity and no fork taking the control of it, it may be time
        to move on. Here is an attempt of a small renaming (to avoid name conflicts in packages),
        and including the improvements of most of the existing forks.
        
        The LPGL v3 licence is preserved.
        
        Originally, this egg is inspired by this [snippet](<http://djangosnippets.org/snippets/1200/)
        
        
        Installation
        ============
        
        
        In your models.py
        -----------------
        
            from multipleselectionfield import MultipleSelectionField
        
            ...
        
            MY_CHOICES = (('item_key1', 'Item title 1.1'),
                          ('item_key2', 'Item title 1.2'),
                          ('item_key3', 'Item title 1.3'),
                          ('item_key4', 'Item title 1.4'),
                          ('item_key5', 'Item title 1.5'))
        
            MY_CHOICES2 = ((1, 'Item title 2.1'),
                           (2, 'Item title 2.2'),
                           (3, 'Item title 2.3'),
                           (4, 'Item title 2.4'),
                           (5, 'Item title 2.5'))
        
            class MyModel(models.Model):
        
                .....
        
                my_field = MultipleSelectionField(choices=MY_CHOICES)
                my_field2 = MultipleSelectionField(choices=MY_CHOICES2,
                                             max_choices=3,
                                             max_length=3)
        
        
        In your settings.py
        -------------------
        
        Only you need it, if you want the translation of django-multipleselectionfield
        
            INSTALLED_APPS = (
                #...
                'multipleselectionfield',
                #...        
            )
        
        
        
        Example project
        ===============
        
        In the source tree, you will find a directory called  
        [example](https://github.com/onekiloparsec/django-multipleselectionfield/tree/master/example/) 
        It contains a readily setup project that uses django-multipleselectionfield. You can run it as usual:
        
            python manage.py migrate --noinput
            python manage.py loaddata app_data
            python manage.py runserver
        
        
        
        0.9.0 (2016-09-06)
        ------------------
        
        * Initial import from https://github.com/goinnn/django-multiselectfield commit c232d1776c95abd20d1eacbf33c68bd6bad73bba
        * Support for Django 1.10
Keywords: django,multiple,select,field,choices
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
