django-easymode icon indicating copy to clipboard operation
django-easymode copied to clipboard

L10n decorator doesn't respect a ModelAdmin's pre existing 'exclude' field

Open mwesterhof opened this issue 12 years ago • 3 comments

as seen in the following 2 line of code from L10n:

    # hide added fields from form and admin
    cls.exclude = added_fields

L10n uses the exclude field to hide the added fields from the admin. This seems to completely overwrite any pre existing value. When the decorator is applied to a ModelAdmin with a customized exclude field, this creates problems for obvious reasons.

mwesterhof avatar Feb 27 '12 16:02 mwesterhof