#15956: When all fields are read-only, don't show save/"change"/etc.
----------------------------------+-------------------------------
 Reporter:  joestump              |          Owner:  nobody
     Type:  Cleanup/optimization  |         Status:  new
Milestone:                        |      Component:  contrib.admin
  Version:  1.3                   |       Severity:  Normal
 Keywords:                        |   Triage Stage:  Unreviewed
Has patch:  0                     |  Easy pickings:  0
----------------------------------+-------------------------------
 I recently created an admin form where I wanted to set ALL of the fields
 in said admin form (a ModelAdmin) to read-only. Basically, I just wanted a
 simple "viewer" for each of these records (credit card transaction results
 from Authorize.Net so I don't exactly want people changing auth codes,
 transaction ID's, etc.). When I go to a record I see the following UI
 elements that are somewhat out of place:

  * Save and add another
  * Save and continue editing
  * Save
  * The header "Change transaction" (should probably say "View transaction"
 or simply the result of __unicode__ for the object)

 Delete is also somewhat out of place here. Might make sense to default
 has_delete_permission() to return False when all fields are marked as
 read-only.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15956>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to