Skip to content
Snippets Groups Projects
Verified Commit 45b27294 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add readme.

parent c4263ce2
No related branches found
No related tags found
No related merge requests found
Django stars widget
===================
Description
-----------
This is a simple widget rendering so-called rating stars as input for an
integer field. It is based solely on CSS 3, as laid out by `Martin Ivanov
<http://experiments.wemakesites.net/css3-rating-stars-with-selection.html>`_.
Usage
-----
Just add the Stars widget to any IntegerField in a Django form.
.. code:: python
from django import forms
from django_starfield import Stars
class StarsExampleForm(forms.Form):
rating = forms.IntegerField(widget=Stars())
You can change the number of stars by passing the stars argument to the
Stars widget.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment