Re: Method to restrict user to certain records

2011-04-14 Thread Joel Goldstick
On Thu, Apr 14, 2011 at 4:20 PM, gladys wrote: > Define a model with one-to-one correspondence with User. > Example: >class UserProfile: >user = models.OneToOneField(User) >... > > By the way, how different are the forms? Because if they are the same > for a group of users (sa

Re: Method to restrict user to certain records

2011-04-14 Thread gladys
Define a model with one-to-one correspondence with User. Example: class UserProfile: user = models.OneToOneField(User) ... By the way, how different are the forms? Because if they are the same for a group of users (say you will implement a user type), you can take advantage of

Method to restrict user to certain records

2011-04-14 Thread Joel Goldstick
I'm new to Django. I've done the djangoproject tutorial and some others, but I haven't come across an answer to my current problem. I have a form that the users fill out. I want the user to be restricted to his form only. Admin should be able to see all forms info. I was thinking I could add a