#25248: Incorrect readonly_fields representation for some fields
-------------------------------+--------------------
Reporter: vmspike | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Values of fields in readonly_fields in most cases shown as raw values.
I suppose it's incorrect for some fields.
I expected the following behavior:
- CharField with 'choices' attribute should be shown as choice description
instead of raw DB value;
- date/time fields should be shown localized (tz, country format);
- FileField should be shown as the link to file (if possible) (related to
#14497 [closed, fixed], but I still see plain text with relative file
path);
- FilePath - the same as FileField (if possible: only if file can be
downloaded);
- ImageField should be shown as image or at link to image file like in
FileField;
- ManyToMany should be shown as list of objects __str__ instead of
'app.model.None' string.
Am I right or current behavior is a feature? :)
--
Ticket URL: <https://code.djangoproject.com/ticket/25248>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.0b8309c49f731308db9711228849e8cb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.