formfieldstash
Project description
django-formfieldstash
*****************
.. image:: https://travis-ci.org/benzkji/django-formfieldstash.svg
:target: https://travis-ci.org/benzkji/django-formfieldstash
show/hide modelform fields, depending on current value of a dropdown in the form. without page reload.
this is a pure javascript solution, using a modeladminmixin approach.
Installation
------------
To get the latest stable release from PyPi
.. code-block:: bash
pip install django-formfieldstash
Add ``formfieldstash`` to your ``INSTALLED_APPS``
.. code-block:: python
INSTALLED_APPS = (
...,
'formfieldstash',
)
formfieldstash does not need it's own database tables, so no need to migrate.
Usage
------------
Have a look at ``formfieldstash/tests/test_app/admin.py`` for some examples.
.. code-block:: python
NOPE
from formfieldstash.admin import assaavdsvad
class TestModel(models.Model):
file = FolderlessFileField(blank=True, null=True)
Contribute
------------
Fork and code. Either run `tox` for complete tests, or `python manage.py test --settings=formfieldstash.tests.settings_test`
*****************
.. image:: https://travis-ci.org/benzkji/django-formfieldstash.svg
:target: https://travis-ci.org/benzkji/django-formfieldstash
show/hide modelform fields, depending on current value of a dropdown in the form. without page reload.
this is a pure javascript solution, using a modeladminmixin approach.
Installation
------------
To get the latest stable release from PyPi
.. code-block:: bash
pip install django-formfieldstash
Add ``formfieldstash`` to your ``INSTALLED_APPS``
.. code-block:: python
INSTALLED_APPS = (
...,
'formfieldstash',
)
formfieldstash does not need it's own database tables, so no need to migrate.
Usage
------------
Have a look at ``formfieldstash/tests/test_app/admin.py`` for some examples.
.. code-block:: python
NOPE
from formfieldstash.admin import assaavdsvad
class TestModel(models.Model):
file = FolderlessFileField(blank=True, null=True)
Contribute
------------
Fork and code. Either run `tox` for complete tests, or `python manage.py test --settings=formfieldstash.tests.settings_test`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-formfieldstash-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c5b53dc3b3178c88387cdff23088219dcbcf73a5a7226e3b42d9c0246dcdd3d |
|
MD5 | 6c7739515accf6b005b24d5cde390afe |
|
BLAKE2b-256 | 9efebc8a5a1dfeee81a281411120360e770d87041702de5825a150b8d4b2a4fb |