Can someone point me in the direction to best solve this problem. It
would easier to show you:

class Profile(models.Model):
    status = models.ForeignKey(Status)
    ...



class Status(models.Model):
    status_name = models.CharField(max_length=50)
    ...

I need to be able to restrict the select box in Add/Change of the
Profile model in the Admin panel to the first 3 entries (with proper
id)  from the Status table. Basically I have 5 values in Status and I
need to have 2 kinds of users, a submitter and a reviewer. Submitter
can only add a 1-3 level status but the reviewer can add/change from 1-
whatever.

What would be the best way to do this? Can I extend the ForeignKey
class? Would it be easier to change my model some how? Any suggestions
would be appreciated, this is my first Django app and I am really
enjoying it.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to