Changes between Initial Version and Version 1 of Ticket #18848


Ignore:
Timestamp:
Aug 24, 2012, 6:42:19 AM (12 years ago)
Author:
Karen Tracey
Comment:

Thanks for the suggestion. If we had to do it all over again, possibly we'd come up with a scheme where there admin-only stuff was not hung somewhat arbitrarily off of model methods. However at this point we cannot remove support for this way of doing it without massive backwards-incompatibility. And adding a "cleaner" way without removing the old way would, I think, be more confusing than helpful.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18848

    • Property Resolutionwontfix
    • Property Status newclosed
  • Ticket #18848 – Description

    initial v1  
    11I'm working through the tutorial and noticed the following snippet:
    2 
     2{{{
    33class Poll(models.Model):
    44    # ...
     
    88    was_published_recently.boolean = True
    99    was_published_recently.short_description = 'Published recently?'
    10 
     10}}}
    1111All 3 attributes admin_order_field, boolean, and short_description seem to be related to how was_published_recently is presented in the admin interface. I guess there might be other such attributes in models.Model as well.
    1212
    13 Maybe such attributes should be moved to admin.ModelAdmin?
     13Maybe such attributes should be moved to `admin.ModelAdmin`?
    1414
    1515
Back to Top