Changes between Initial Version and Version 1 of Ticket #27386, comment 4


Ignore:
Timestamp:
10/30/16 00:38:01 (6 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27386, comment 4

    initial v1  
    11Yes, changing this could add a minor backwards compatibility problem; something probably not really noticeable and if, easy to fix.
    22
    3 I looked at the code. We presumably should add another tag to ``django.contrib.admin.helpers.AdminReadonlyField.__init__`` named ``is_callable`` which is ``True`` for callable fields. Then in the templates, we'd have to add another ``{% if field.is_callable %}`` and only wrap the content inside ``<p>..</p>`` it that's false.
     3I looked at the code. We presumably should add another tag to `django.contrib.admin.helpers.AdminReadonlyField.__init__` named `is_callable` which is `True` for callable fields. Then in the templates, we'd have to add another `{% if field.is_callable %}` and only wrap the content inside `<p>..</p>` it that's false.
    44
    55If this proposal is accepted, I will implement it right now.
Back to Top