hello all, I'm considering Django for one of my projects but I run into an issue. Suppose I have a multi-user environment (like craigslist) where users can register and, let's say, write posts and create photo galleries. I want a user to be able to edit his or her own posts and galleries. I want all posts and galleries to be viewable by all. How would I do that in Django?
In another framework, I'd have User hasMany Post, Post belongsTo User, and then in the controller in action Post/edit/post_id, I'd compare Post.user_id to that from the session of the authenticated user, and kick him out if his id doesn't match. But in Django I'm not sure how to do that. Your help is much appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.