post-save hook in newforms-admin

2008-07-16 Thread Wanrong Lin
Hi, I just switched to the newforms-admin branch. After some tweaking, things worked fine. But the real reason I switched is because I want to use the post-save hook in the new admin application. To be more specific, I want to perform some processing on a database entry after it is added or

unique_together and null=True fields

2008-07-01 Thread Wanrong Lin
Hi, This topic has been discussed before here: http://groups.google.com/group/django-users/browse_thread/thread/fcd04f766b101a95/b65b70aa6b03729e?lnk=gst=unique_together%2C+null# Don't you agree that two field combinations like ("A", null) and ("A", null) should be considered identical and

edit_inline and field order in admin

2008-06-24 Thread Wanrong Lin
I am posting this again because my last post went to the wrong thread (I should not have replied to an existing message and just changed the subject line). Sorry. --- Hi, I have a few models with "edit_inline=models.STACKED". How can I control the field order of those models in the

edit_inline and field order

2008-06-23 Thread Wanrong Lin
Hi, I have a few models with "edit_inline=models.STACKED". How can I control the field order of those models in the administration form? Even with class Admin: fields = () it won't work. Plus, the above will expose those models individually in the administration form. Can someone

Re: Multi-page search result

2008-01-28 Thread Wanrong Lin
What a pleasant surprise! I am glad that I asked the question, even though I thought I had googled through everything. Thanks a lot for pointing these goodies out. Wanrong SmileyChris wrote: > Using the low-level cache [1] sounds like it'd work fine for you. > > from django.core.cache import

Re: Multi-page search result

2008-01-27 Thread Wanrong Lin
Hi, Gordon, Thanks a lot for sharing the details of your solution on this problem. So far I don't see any approach better than what you did, namely storing the results in some temporary place that is tied to a session. So I think I will just go along with this approach. I have not read

Re: Best practice for implementing multilingual content in template

2008-01-27 Thread Wanrong Lin
Emil, I am having the same problem too. I have not gone that far to implementing the details of templates, but my planned solution is to use just one template without any language dependent switching. Instead, I will write some code to extract the relevant fields (title_en or title_sv as in

Multi-page search result

2008-01-27 Thread Wanrong Lin
Hi, I wonder whether I can learn some best practice here on how to do multi-page search result, similar to what Google does. My search is computation intensive, and it will be very expensive to do the search all over from beginning when the user clicks on "next page". I am thinking about

Multi-level edit_inline

2008-01-13 Thread Wanrong Lin
Hi, I would like to have multi-level edit_inline working, but I could not. I found two people with the same need in this mailing list: http://groups.google.com/group/django-users/browse_thread/thread/bb774966eb3a3d7e/f8faef7b364b6523?lnk=gst=edit-inline%2C+level#f8faef7b364b6523