Here is my situation:

I have a model attribute which needs CHOICES to come from another
model. The caveat is, I need to add an addition choice so I cannot set
it as a foreign key. How do I set the CHOICES to populate dynamically
and add the additional choice.

Here is the abbreviated context of my problem:

class Task(models.Model):
    employee = models.ForeignKey(Employee)
    client = models.CharField(maxlength=100, core=True) # I need to
add the choice "Non-Client" and make it the default selection
    task_description = models.TextField()


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to