{ "info": { "author": "Dominik George", "author_email": "nik@naturalnet.de", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django stars widget\n===================\n\nDescription\n-----------\n\nThis is a simple widget rendering so-called rating stars as input for an\ninteger field. It is based solely on CSS 3, as laid out by `Martin Ivanov\n`_.\n\nThis is different from other star rating applications in that it provides\nonly a widget returning its selction to any IntegerField. It is not a\ncomplete rating application, just a presentational widget for integer input.\nIt is also different in that it depends only on CSS3, without any\nJavaScript.\n\nIn contrast to others (and to the original work credited above), this widget\nalso works on browsers that do not support CSS (like text-mode browsers). In\nthat case, it renders as basic radio buttons with numbers.\n\nUsage\n-----\n\nJust add the Stars widget to any IntegerField in a Django form.\n\n.. code:: python\n\n from django import forms\n from django_starfield import Stars\n\n class StarsExampleForm(forms.Form):\n rating = forms.IntegerField(widget=Stars)\n\nThe following aspects are configurable, both in the Django settings and when\ncreating the widget (by passing an argument to Stars):\n\n+------------------------+-----------------------+---------+---------------------+-----------+\n| Aspect | Format | Default | Setting name | Argument |\n+========================+=======================+=========+=====================+===========+\n| Number of stars | integer | 5 | STARFIELD_STARS | stars |\n+------------------------+-----------------------+---------+---------------------+-----------+\n| Character used as star | hexadecimal codepoint | 2605 | STARFIELD_CODEPOINT | codepoint |\n+------------------------+-----------------------+---------+---------------------+-----------+\n| Colour of stars | HTML colour | #f5b301 | STARFIELD_COLOUR | colour |\n+------------------------+-----------------------+---------+---------------------+-----------+\n\nPlease note that some browsers render some Unicode characters, especially\nemojis, as images, so changing the font colour will not work.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://edugit.org/nik/django-starfield", "keywords": "django", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-starfield", "package_url": "https://pypi.org/project/django-starfield/", "platform": "", "project_url": "https://pypi.org/project/django-starfield/", "project_urls": { "Homepage": "https://edugit.org/nik/django-starfield" }, "release_url": "https://pypi.org/project/django-starfield/1.0.post1/", "requires_dist": null, "requires_python": "", "summary": "A no-frills Django form widget for rating stars", "version": "1.0.post1" }, "last_serial": 4128839, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "a3997bd94797cb5b59381219cc3d8abc", "sha256": "885fcbf5333f5d80b1f5ae2fff57e23b95c4b9d7d7b02f6602dc041c486aeabf" }, "downloads": -1, "filename": "django-starfield-1.0.tar.gz", "has_sig": true, "md5_digest": "a3997bd94797cb5b59381219cc3d8abc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6611, "upload_time": "2018-08-02T13:29:19", "url": "https://files.pythonhosted.org/packages/dc/d7/a9e170207db06ea255f58d6777969b35a9690440d776b1d4f833b545d8a2/django-starfield-1.0.tar.gz" } ], "1.0.post1": [ { "comment_text": "", "digests": { "md5": "f95dc19b98f1db6597f7cb60a2fa66e7", "sha256": "318b7e245619ed9e3eebec5dd42f9c176109783bfa25b1e021dcb2f0809cc72a" }, "downloads": -1, "filename": "django-starfield-1.0.post1.tar.gz", "has_sig": true, "md5_digest": "f95dc19b98f1db6597f7cb60a2fa66e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6810, "upload_time": "2018-08-02T14:38:37", "url": "https://files.pythonhosted.org/packages/44/b6/2bb85dfa73dc573e17eb13ec047540b795ddc43bd33d01bd53a933ee29f4/django-starfield-1.0.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f95dc19b98f1db6597f7cb60a2fa66e7", "sha256": "318b7e245619ed9e3eebec5dd42f9c176109783bfa25b1e021dcb2f0809cc72a" }, "downloads": -1, "filename": "django-starfield-1.0.post1.tar.gz", "has_sig": true, "md5_digest": "f95dc19b98f1db6597f7cb60a2fa66e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6810, "upload_time": "2018-08-02T14:38:37", "url": "https://files.pythonhosted.org/packages/44/b6/2bb85dfa73dc573e17eb13ec047540b795ddc43bd33d01bd53a933ee29f4/django-starfield-1.0.post1.tar.gz" } ] }