News for hackers. Stuff that matters.
Re:Dropping Django by tvon on Wednesday August 19, 2009 @03:38PM (#773590)
Django is not without it's problems, but some of this isn't correct (upon a quick skim). For example, the Django admin does support filtering and sorting, you just need to indicate this in the admin class.
Re:Dropping Django by snprbob86 on Wednesday August 19, 2009 @04:30PM (#773700)
You can set sorting order and filtering options in your admin class, but the UI doesn't provide clickable column headers or anything like a search box.

EDIT: Apparently I was mistaken, as the replies point out. I read the Django book, but I do not recall this chapter. My apologies.

Re:Dropping Django by jbronn on Wednesday August 19, 2009 @04:51PM (#773745)
The admin provides both of these features -- specify the columns you want to be clickable in the `list_display` attribute on your `ModelAdmin` class. Similarly, specify a `search_fields` attribute to add a search box for the columns you want to search.

Why read the documentation or look for examples when you can write a blog post screed and post it on HN?

Re:Dropping Django by jonknee on Wednesday August 19, 2009 @04:38PM (#773719)
Maybe I am misunderstanding you, but it does do clickable column headers (by default even I think) and you can definitely have a search box.
Re:Dropping Django by ubernostrum on Wednesday August 19, 2009 @06:22PM (#773934)
By default, any field on the model that's displayed as a column in the list of objects is clickable to sort. You can also display things based on other attributes of the model (e.g., calling a method), and if you like you can specify that they're tied to particular fields to get clickable sorting for those as well.
Re:Dropping Django by sebg on Wednesday August 19, 2009 @04:45PM (#773732)
I was going through the django book and here is something that could help you out:

search_fields = ('title',)

"Finally, the search_fields option creates a field that allows text searches. It allows searches by the title field (so you could type Django to show all books with “Django” in the title)."

http://www.djangobook.com/en/1.0/chapter06/