Last active
May 15, 2018 10:22
-
-
Save harmo/698321b0e2bec7774014 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;'}) | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OH ?! :o Ouais effectivement, ça a l'air cool ! :)