Re: TextMate Django autocomplete

2008-08-22 Thread Dan Lazewatsky
There's a django bundle for textmate (http://macromates.com/svn/Bundles/trunk/Bundles/Python%20Django.tmbundle/). I don't use textmate's autocomplete stuff very much, but there's some in there. eka wrote: > Hi all, > How can I make my TextMate to autocomplete django? > I have django on my site

Adding groups to groups

2008-07-02 Thread Dan Lazewatsky
Is there any way to add a group to another group, similarly to how you would add a user to a group. For example, let's say I have four groups: Undergraduates, Grad Students, Faculty and Staff, and there are a bunch of permissions that will always be the same for Undergraduates and Grad Student

Re: Getting the name of a class

2008-06-23 Thread Dan Lazewatsky
I just tried this out from the shell - for me __class__ returns the name of the class, not the parent class. If you want just the name and not all the other junk that goes with it, you can use obj.__class__.__name__. -Dan mwebs wrote: > Hi, > > thanks for your answer but I already tried this a

Re: Model - Only allow One

2008-06-16 Thread Dan Lazewatsky
The way you described has the added advantage of effectively keeping a version history. However, if no one is ever going to use this history it's just a waste of space. There are two other options I can think of, one probably better than the other: 1. Django's cache framework (http://www.djang