On Fri, 2009-03-06 at 15:45 -0800, Doug wrote: > I have 2 related models, Project and Task. > > What's the best way to set up my models so a Task can either be part > of a Project or not? Do I set up a "dummy" Project for Tasks which > aren't related to a specific Project? Or is there a way to set "Null" > on the FK of a Task for the Project field?
Every field in Django allows the "null" option. See http://docs.djangoproject.com/en/dev/ref/models/fields/#null Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

