Re: problem with inlineformset_factory

2008-11-27 Thread Yanik
I'm using MySQL and running 1.0.2 and the bug is still there. This ticket: http://code.djangoproject.com/ticket/9039 is closed, but the code still hasn't been fixed and the mentioned patch doesn't seem to work. Has anyone gotten this to work? On Nov 24, 8:23 pm, boardman <[EMAIL PROTECTED]> wr

Custom ACL

2008-12-14 Thread Yanik
Hello, I need to build a custom ACL for the app I'm working on, Django's isn't specific enough (I need to give permissions based on IDs, statuses, etc.). I'd also like to attach it to the user, so that I could lookup in a way something like User.acl.has_permission(post_id, "can_edit). How can I

Re: Custom ACL

2008-12-14 Thread Yanik
Thanks, but this is to manipulate Posix ACL (user ACL on the actual OS). On Dec 14, 2:06 pm, "Ramdas S" wrote: > http://pylibacl.sourceforge.net/ > > check this > > Might help > > > > On Sun, Dec 14, 2008 at 7:56 PM, Yanik wrote: > > > Hello, >

Strange bug when Debug = False

2009-02-17 Thread Yanik
I've been having this problem for a few weeks and I can't, for the life of me, figure it out. I have 2 types of environments: my local dev server, running Ubuntu, and the live server, running Fedora 9. The problem only occurs on on the Fedora server and only when Debug = False. The tricky par is,

Getting logged in user in signal

2009-09-02 Thread Yanik
I want to write a signal that tracks activities on certain models, but I'd also like to keep track of who did what. Is there any way, from the signal action, to get the value of request.user? --~--~-~--~~~---~--~~ You received this message because you are subscribe

Return FK model

2009-09-03 Thread Yanik
Let's say I have a model "Friends" that looks something like: class Friend(models.Model): user = models.ForeignKey(User) friend = models.ForeignKey(User, related_name="friend") I want a list of "User" instances of a user's friends. Is my only option to: 1) Get list of "Friends"

Re: Return FK model

2009-09-03 Thread Yanik
ip > between users.   It seems it would be better to add a ManyToManyField on the > User model, eg: > > class User(models.Model): >     ... >     friends = ManyToManyField(User) > > Then you could just use "user.friends" > > On Thu, Sep 3, 2009 at 9:50 AM, Ya

Comments inside a loop

2010-05-12 Thread Yanik
Hello, I'm trying to do something that seemed simple, but can't get to work: displaying comments using Django (1.2 RC)'s Comment framework inside a loop. {% for entry in entries %} {% get_comment_list for entry as comments %} {% render_comment_form for entry %} {% endfor %} but

Re: Comments inside a loop

2010-05-12 Thread Yanik
Wow, I feel totally stupid... works like a charm now :) On May 12, 2:14 pm, Karen Tracey wrote: > On Wed, May 12, 2010 at 1:52 PM, Yanik wrote: > > Hello, > > > I'm trying to do something that seemed simple, but can't get to work: > > displaying commen