Re: simon's AbstractSearching still working with m-r branch?

2006-04-29 Thread FX
it shell work with this patch attached: Patch: Index: stuff/branches/magic-removal/json.py === --- stuff/branches/magic-removal/json.py(revision 1002) +++ stuff/branches/magic-removal/json.py(working copy) @@ -2,7 +2,

Re: M-R DB API Usage Question: How to order_by with extra field?

2006-04-25 Thread FX
Seems to me it looks like a bug in the m-r branch. django/db/models/query.py, line 430: was: if "." not in col_name and col_name not in [k[0] for k in (self._select or ())]: should be: if "." not in col_name and col_name not in [k for k in (self._select or ())]: for k[0] will be the first lette

M-R DB API Usage Question: How to order_by with extra field?

2006-04-25 Thread FX
t;faxian_story"."snapshot_ts","faxian_story"."update_ts",(SELECT COUNT(*) FROM faxian_votes WHERE story_id=faxian_storys.id) AS "votes" FROM "faxian_story" WHERE ("faxian_story"."promotion_ts" IS NOT NULL AND "faxian_

Re: ExtendedUserModel in m-r branch?

2006-04-23 Thread FX
thank you guys for the response... I guess we will have to go back using one-to-one till the inheritance is there... best regards, --FX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

ExtendedUserModel in m-r branch?

2006-04-20 Thread FX
till be done by some other ways. (Sorry if it's a silly question, I'm just getting started with migration to the m-r branch). Any enlightment would be really appreciated! --FX --~--~-~--~~~---~--~~ You received this message because you are subscribed

customize get_id_list in AbstractSearching?

2006-01-24 Thread FX
Dear Hugo and other folks, I'm working on a django based app that I'd like to combine text search together with tag search. For instance, module storys is tagged with hugo's abstract tagging library, and when I get the search string, I want to do an "OR" search to return storyies that either the t

Re: Adding errors into the form?

2006-01-05 Thread FX
Hi Ian, Thanks for the prompt reply. (which time zone are you in?) I made some modifications to your Django Captcha that might be useful, so I'm attaching the patch (generated by svn) below. The changes are: 1. modified to make use of tempfile.mkdtemp() and tempfile.tempdir instead of "/tmp" to m

Adding errors into the form?

2006-01-05 Thread FX
Folks, I'm working on an application that makes use of Django Captcha. I want to be able to display the captcha validation error along with other errors on the form after post, and here is my view code (please note the story model is the same as django.models.storys so the manipulator is django.mo