Add the readme
This commit is contained in:
parent
a0b976a758
commit
853467a2a8
1 changed files with 48 additions and 1 deletions
49
README.rst
49
README.rst
|
@ -1,4 +1,51 @@
|
||||||
django-multiselectfield
|
django-multiselectfield
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
A Multiple Choice model field
|
A new model and form field. With this you can get a multiple select from a choices
|
||||||
|
|
||||||
|
This egg is done from a `snippet <http://djangosnippets.org/snippets/1200/>`_
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
In your settings.py
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
INSTALLED_APPS = (
|
||||||
|
'django.contrib.auth',
|
||||||
|
'django.contrib.contenttypes',
|
||||||
|
'django.contrib.sessions',
|
||||||
|
'django.contrib.sites',
|
||||||
|
'django.contrib.admin',
|
||||||
|
|
||||||
|
#.....................#
|
||||||
|
|
||||||
|
'multiselectfield',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
In your models.py
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
from multiselectfield import MultiSelectField
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
class MyModel(models.Model):
|
||||||
|
|
||||||
|
.....
|
||||||
|
|
||||||
|
my_field = MultiSelectField(verbose_name=_('xxx'), choices=MY_CHOICES)
|
||||||
|
|
||||||
|
|
||||||
|
Development
|
||||||
|
===========
|
||||||
|
|
||||||
|
You can get the last bleeding edge version of django-configfield by doing a clone
|
||||||
|
of its hg repository::
|
||||||
|
|
||||||
|
git clone https://github.com/goinnn/django-multiselectfield
|
||||||
|
|
Loading…
Reference in a new issue