> In my models, I'm trying to limit the choices of a field based on the > data stored in a field in the user profile table.
You will want to define these limits in your forms rather than in the models. > However, I have not been successful. I'm trying to learn Django, so > I'm still a noob when it comes to it. Look in the Model Forms documentation on how you can build forms around your models and how you can customize them. Here's one starting point: http://docs.djangoproject.com/en/dev//topics/forms/modelforms/#topics-forms-modelforms > > Also, is the user profile table supposed to have an id field that > differs from the user id? Yes. By default, each model in Django creates an id field which serves as the primary key for that table. -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 -~----------~----~----~----~------~----~------~--~---