Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mwesterhof opened this issue Feb 27, 2012 · 3 comments

Comments

@mwesterhof
Copy link

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.

@specialunderwear
Copy link
Owner

Yes, this is true. Can you write a patch Marco?

@mwesterhof
Copy link
Author

i could, but that will have to wait since right now a certain company seems to want to take over all my free time... for now it isn't a real issue for me but if i have the time later i'll see what i can do

@specialunderwear
Copy link
Owner

Good luck, Marco, looking forward to the patch, you might need http://packages.python.org/django-easymode/i18n/api.html#easymode.i18n.admin.decorators.lazy_localized_list to pull it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants