Re: A suggestion for ManyToManyField Manager

2009-06-30 Thread khsing
The delete operation is operated in Admin interface. On Tue, Jun 30, 2009 at 4:18 PM, khsing<khsing...@gmail.com> wrote: > As we know, if we delete a Object that related with others, The others > will deleted together. If this relation is Foreign Key, it is okay, > but whe

Re: The select all checkbox for action in admin does not work with IE web browser.

2009-06-30 Thread khsing
yes, I have noticed, and I have close my ticket. thanks you. On Wed, Jul 1, 2009 at 10:56 AM, Karen Tracey<kmtra...@gmail.com> wrote: > On Tue, Jun 30, 2009 at 3:45 AM, khsing <khsing...@gmail.com> wrote: >> >> I have test in IE 6/8, the select all checkbox does n

A suggestion for ManyToManyField Manager

2009-06-30 Thread khsing
As we know, if we delete a Object that related with others, The others will deleted together. If this relation is Foreign Key, it is okay, but when this relation is ManyToMany, the delete operation should only delete the relation not the related Objects. thanks. -- A man live in jail and want

The select all checkbox for action in admin does not work with IE web browser.

2009-06-30 Thread khsing
I have test in IE 6/8, the select all checkbox does not work. But it can work with Safari or Firefox. Django Version: 1.1-beta-1 -- A man live in jail and want to break. http://blog.khsing.net --~--~-~--~~~---~--~~ You received this message because you are

How to create such a model?

2009-03-09 Thread khsing
I want create a model that contain two field and there is one of two field can not be blank. how to do it? thanks. -- A man live in jail and want to break. http://blog.khsing.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Documentation for Download?

2009-02-11 Thread khsing
Recently, I see some dictionary of Ruby, ROR and jQuery for Mac. How to build a Django and python dictionary for mac? thanks On Thu, Feb 12, 2009 at 12:33 PM, Alex Gaynor wrote: > > > On Wed, Feb 11, 2009 at 11:11 PM, Will Hardy wrote: >> >> Hi

Re: A ManyToMany Field question.

2009-02-11 Thread khsing
Yes, I am work on a python 2.3 environment now. Thanks a lots. I will import set datatype. On Thu, Feb 12, 2009 at 10:24 AM, Alex Gaynor wrote: > datatype -- A man live in jail and want to break. http://blog.khsing.net

Re: A ManyToMany Field question.

2009-02-11 Thread khsing
1, 2009 at 9:06 PM, khsing <khsing...@gmail.com> wrote: >> >> Alex, thank you very much. >> >> I find if g1 belong g2, g2 will belong g1 automatically, but that is not >> right. >> >> should I rewrite models like this one? >> >> groups = mode

Re: A ManyToMany Field question.

2009-02-11 Thread khsing
wrote: > > > On Wed, Feb 11, 2009 at 2:29 AM, khsing <khsing...@gmail.com> wrote: >> >> class user(models.Model): >>username = models.CharField(max_length=50) >> >> class group(models.Model): >>groupname = models.CharField(max_length=50

Re: A ManyToMany Field question.

2009-02-10 Thread khsing
list in such models, anyone give me a suggestion. example: user U1 belong group G1 and group G1 belong G2, I want get G1 and G2 via U1. like this def get_all_groups(user): return all_groups >>>get_all-groups(U1) [G1, G2] that all. Thank. On Tue, Feb 10, 2009 at 12:18 PM, khsin

Re: A ManyToMany Field question.

2009-02-09 Thread khsing
Alex, thanks, now it work. now have a new problem is may a group can contain itself, this will be a loop. how to avoid this condition? On Tue, Feb 10, 2009 at 11:28 AM, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > On Mon, Feb 9, 2009 at 10:18 PM, khsing <khsing..

A ManyToMany Field question.

2009-02-09 Thread khsing
I want design a group that can contain other groups, and one group can belong many groups. I write such code below, but not right. class Group(models.Model): groups = models.ManyToManyField(Group) any suggestion? or how to design such a group. thanks. -- A man live in jail and want to

Re: Admin form got a wrong action address via lighttpd with fastcgi.

2008-12-30 Thread khsing
I have got the reason. just set FORCE_SCRIPT_NAME = '' in settings.py On Tue, Dec 30, 2008 at 10:41 AM, khsing <khsing...@gmail.com> wrote: > > I have done via this link > http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/ > > The login form is appeared, bu

Admin form got a wrong action address via lighttpd with fastcgi.

2008-12-29 Thread khsing
I have done via this link http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/ The login form is appeared, but the action of login form is wrong. I think the action should be "/admin/", but I got "/nsman.fcgi/ admin/". why? here is some configure files. * lighttpd.conf