Wednesday, July 4, 2012

Admin actions -- short_description as doc string?

I'm just staring to explore admin actions. I'm surprised to see that you have to set the description by doing:

my_action_function.short_description = "blah"

wouldn't it be cleaner to just declare a doc string for the action function and have short_description grabbed from there?

--
Roy Smith
roy@panix.com



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment