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

Django 1.3, 1.4 admin readonly fields problem #13

Open
RoelWKramer opened this issue Dec 19, 2012 · 1 comment
Open

Django 1.3, 1.4 admin readonly fields problem #13

RoelWKramer opened this issue Dec 19, 2012 · 1 comment

Comments

@RoelWKramer
Copy link

In Django 1.3 and 1.4 it's possible to have readonly fields in the admin.
admin.ModelAdmin.readonly_fields = ('fields', )

Easymode, however, does not understand it. When submitting a form, it makes the form invalid. It should not validate the field at all. I created a test to demonstrate it.
https://gist.github.com/4336937

Also the readonly field is displayed twice.

I used this easymode version:
pip install git+https://github.com/specialunderwear/django-easymode.git@a978994c9410b7706c4a2935d596e172a9c8055a#egg=django_easymode-dev

The test which fails is: test_form_submit_submit_readonly. We suspect the L10N decorator to screw things up.

@specialunderwear
Copy link
Owner

Awesome bug report. Will look at it when I've got time.

specialunderwear added a commit that referenced this issue May 15, 2013
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