Skip to content

Simple colorfield for django (optimized for grappelli)

Notifications You must be signed in to change notification settings

erlendk/django-colorfield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

Languages

  • JavaScript 69.8%
  • CSS 20.7%
  • Python 9.5%