Skip to content
Snippets Groups Projects
Select Git revision
  • 8f657a92ad548db06a78bfd04daaa28c91ad63f0
  • master default protected
  • renovate/configure
  • 1.0.post2
  • 1.0.post1
  • 1.0
6 results

README.rst

Blame
  • Forked from Nik | Klampfradler / django-starfield
    38 commits behind the upstream repository.
    README.rst 875 B

    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.

    Usage

    Just add the Stars widget to any IntegerField in a Django form.

    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.

    Differences

    This is different from other star rating applications in that it provides only a widget returning its selction to any IntegerField. It is not a complete rating application, just a presentational widget for integer input.