All Projects → Sinkler → django-radiogrid

Sinkler / django-radiogrid

Licence: LGPL-3.0 license
Django radio grid field

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to django-radiogrid

CustomWebRadioButton
An example of a make radio-button design on the web.
Stars: ✭ 15 (-46.43%)
Mutual labels:  radio-buttons
Driftwood
Driftwood 2D Tiling Game Engine and Development Suite
Stars: ✭ 23 (-17.86%)
Mutual labels:  python35
react-native-radio-buttons-group
Simple, best and easy to use radio buttons for react native apps.
Stars: ✭ 145 (+417.86%)
Mutual labels:  radio-buttons
LC-switch
Superlight vanilla javascript plugin improving forms look and functionality
Stars: ✭ 31 (+10.71%)
Mutual labels:  radio-buttons
Examples FLTK
Shows how to use Fltk controls only by programming code (c++17).
Stars: ✭ 28 (+0%)
Mutual labels:  radio-buttons
trellio
Python3 asyncio based microframework for microservice architecture
Stars: ✭ 19 (-32.14%)
Mutual labels:  python35
Radiorealbutton
A custom radio button for Android API 12+
Stars: ✭ 250 (+792.86%)
Mutual labels:  radio-buttons
VNet
Prostate MR Image Segmentation 2012
Stars: ✭ 54 (+92.86%)
Mutual labels:  python35
open-solution-ship-detection
Open solution to the Airbus Ship Detection Challenge
Stars: ✭ 54 (+92.86%)
Mutual labels:  python35
Examples Qt
Shows how to use Qt widgets only by programming code (c++17).
Stars: ✭ 38 (+35.71%)
Mutual labels:  radio-buttons
Artistic-Style-Transfer-using-Keras-Tensorflow
Art to Image Style Transfer using Keras and Tensorflow.
Stars: ✭ 22 (-21.43%)
Mutual labels:  python35
aarch64-tensorflow
tensorflow and bazel for aarch64: binaries at...
Stars: ✭ 14 (-50%)
Mutual labels:  python35
servicebook
A web service to manage our projects
Stars: ✭ 14 (-50%)
Mutual labels:  python35
react-radios
🔘 Proper handling of HTML radios in react
Stars: ✭ 60 (+114.29%)
Mutual labels:  radio-buttons
sozlukus.com
sozlukus.com source code
Stars: ✭ 11 (-60.71%)
Mutual labels:  python35
Examples wxWidgets
Shows how to use wxWidgets controls only by programming code (c++17).
Stars: ✭ 116 (+314.29%)
Mutual labels:  radio-buttons
pretty-checkbox-react
A tiny react/preact wrapper around pretty-checkbox
Stars: ✭ 35 (+25%)
Mutual labels:  radio-buttons
lt2circuitikz
Python (3.5) tool to convert .asc files into circuiTikz graphics
Stars: ✭ 57 (+103.57%)
Mutual labels:  python35
fastuuid
FastUUID is a library which provides CPython bindings to Rust's UUID library
Stars: ✭ 83 (+196.43%)
Mutual labels:  python35
conditionize.js
Small jQuery plugins for handling conditional form fields via data attributes. Unmaintained.
Stars: ✭ 56 (+100%)
Mutual labels:  form-fields

django-radiogrid

With this you can create a radio grid field:

https://api.monosnap.com/rpc/file/download?id=4rJ1neeFuwSMlonpWaQyd65LPR9R62

Installation

pip install django-radiogrid

In your settings.py

INSTALLED_APPS = (

    # ...

    'radiogrid',
)

In your models.py

from radiogrid import RadioGridField

# ...

ROWS = (
    (1, 'First'),
    (2, 'Second'),
    (3, 'Third'),
)

VALUES = (
    ('pyha', 'Pyha'),
    ('work', 'Work'),
    ('happy', 'Happy'),
    ('food', 'Food'),
)

class MyModel(models.Model):

    # ...

    my_grid = RadioGridField(rows=ROWS, values=VALUES, require_all_fields=True)

Example project

You can run it as usual:

virtualenv venv
. venv/bin/activate
pip install django
pip install -e .
cd example
./manage.py migrate
./manage.py loaddata data
./manage.py runserver
./manage.py test

or

docker-compose up app
docker-compose run --rm app test

Developing

Testing

docker-compose run --rm app test
docker-compose run --rm app coverage
docker-compose run --rm tox tox -e py36-django-master
docker-compose run --rm tox

Releasing

  • add a new version description in CHANGES.rst
  • change a version in __init__.py
  • add a github release
  • docker-compose run --rm app release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].