Re: Template: nested for and ManyToMany field problem - MySQL

2006-06-19 Thread Adam Hoscilo
> Then you want entry.categories.all in your template. That was the problem. Thanks. -- Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Template: nested for and ManyToMany field problem - MySQL

2006-06-18 Thread Adam Hoscilo
remove the nested for everything works fine. I tried to fetch entries with .select_related() and without - no difference. Database backend is MySQL 5 Anyone had a problem like this one? -- Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you

Re: Custom manager filter by logged in user.

2006-06-17 Thread Adam Hoscilo
Not that way anymore. I will just check (in the middleware) if the requested entry's author is the logged in user (for edit action) if not throw exception. -- Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Custom manager filter by logged in user.

2006-06-17 Thread Adam Hoscilo
You're right - my fault. It just isn't the way I would like to handle this problem. But I've forgotten about middleware and I think this will be the best way to solve this _issue_ without breaking MVC(MVT) schema (just check if the requested object was created by user).

Custom manager filter by logged in user.

2006-06-17 Thread Adam Hoscilo
that by custom managers or maybe some other nice way? PS django.pl coming soon :) -- Regards Adam Hoscilo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email