On Mar 13, 9:51 am, Kier <kierh...@gmail.com> wrote:
> I'm new to django so forgive me if this is a noobish question. I'm
> creating a website where users can log in and create projects. I would
> like to keep up with which user created which project and allow him to
> easily get a list of projects he created. Also I want a user to only
> be able to edit a project he created unless of course he's a super
> user.
>
> Is this all doable in django?
Yes.
>
> Would I just include something like this in my model:
>
> project_creator = models.ForeignKey(User)
Yes.
>
> After that I'm not so much as looking for how to do the above just
> rather or not it is easily doable in django.
The answer is a resounding "Yes".
Obviously, you will have to write additional code to enforce whatever
security/permissions your app needs. All of that too is very doable in
Django.
-Rajesh D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---