Skip to content

exoanalytic/django-colorfield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-colorfield

Simple colorfield for django (optimized for grappelli)

Installation

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 (optimized for grappelli)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published