Skip to content

Instantly share code, notes, and snippets.

@harmo
Last active May 15, 2018 10:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harmo/698321b0e2bec7774014 to your computer and use it in GitHub Desktop.
Save harmo/698321b0e2bec7774014 to your computer and use it in GitHub Desktop.
from django.forms import SelectMultiple
from django.db import models
from django.contrib import admin
class EmailOperationAdmin(admin.ModelAdmin):
list_display = ('store', 'date', 'mail_object')
formfield_overrides = {
models.ManyToManyField: {
'widget': SelectMultiple(attrs={'size': '15', 'style': 'width:600px;'})
},
}
@wo0dyn
Copy link

wo0dyn commented May 13, 2014

OH ?! :o Ouais effectivement, ça a l'air cool ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment