{"repo":"fabiocaccamo/django-colorfield","free":true,"listed":false,"github":"https://github.com/fabiocaccamo/django-colorfield","clone":"git clone https://github.com/fabiocaccamo/django-colorfield.git","description":":art: color field for django models with a nice color-picker in the admin.","language":"Python","stars":661,"topics":["django","colorfield","colorpicker","color","field","picker","model","admin","python","models"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"django-colorfield simple color field for your models with a nice color-picker in the admin-interface. --- Installation - Run pip install django-colorfield - Add colorfield to settings.INSTALLED APPS - Run python manage.py collectstatic - Restart your application server --- Usage Settings This package doesn't need any setting. Models Just add color field(s) to your models like this: Field Options These are the supported custom options: format , image field , samples format The following formats are supported: hex (default) , hexa , rgb , rgba . image field It is possible to auto-populate the field value getting the color from an image using the image field option. The color will be calculated from the top-left pixel color of the image each time the model instance is saved. samples It is possible to provide a palette of colors to choose from to the widget using the samples option. This option is not restrictive (on the contrary of choices option), it is also possible to choose another color from the spectrum. Forms Model forms The colorfield.fields.ColorField can be used in Django model forms ( django.forms.ModelForm ) to provide a color picker widget. When used in a model form, the field automatically validates the color format based on the specified format (e.g., hex , rgb , rgba ). Plain forms The colorfield.forms.ColorField can be used in plain Django forms ( django.forms.Form ) to provide a color-picker widget. This is useful when you need a color input outside of a model ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fabiocaccamo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fabiocaccamo/django-colorfield/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}