Skip to content

01miru/django-colorfield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-colorfield

Simple colorfield for django (optimized for grappelli)

Installation

Using PIP:

pip install git+https://github.com/01miru/django-colorfield.git

Add colorfield to your INSTALLED_APPS.

Then in your models, you can use it like this:

from django.db import models
from colorfield.fields import ColorField

class Show(ExtendedModel):
    title = models.CharField(u'Title', max_length=250)
    color = ColorField(default='ffffff')

And an example for the admin:

from django.contrib import admin
from models import Show

ShowAdmin(admin.ModelAdmin):
    list_display = ('title', 'color',)
    list_editable = ('color',)

admin.site.register(Show, ShowAdmin)

About

Simple colorfield for django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.5%
  • CSS 20.7%
  • Python 9.8%