You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: