#23588: list_display method attributes description links -------------------------------+-------------------- Reporter: eliasvc | Owner: nobody Type: Uncategorized | Status: new Component: Documentation | Version: 1.7 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- Hello,
This is a piece of code that first describe the use of method attributes in callback functions used in list_display on Django tutorial, page two [https://docs.djangoproject.com/en/1.7/intro/tutorial02/] {{{ class Question(models.Model): # ... def was_published_recently(self): return self.pub_date >= timezone.now() - datetime.timedelta(days=1) was_published_recently.admin_order_field = 'pub_date' was_published_recently.boolean = True was_published_recently.short_description = 'Published recently?' }}} The problem is none of those method attribute definitions take you somewhere where it describes what they do. It can be very confusing for a person starting out. In fact, it would be awesome if there was some kind of index of method attributes one can use since their descriptions on the admin page are scattered. -- Ticket URL: <https://code.djangoproject.com/ticket/23588> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.4f5b131f9c33c49afb3028c3fa9c9e75%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.