Hi - Is there a simple way (or maybe, not so simple) to create default
values for a ManyToManyField ?
My usage is pretty basic (and maybe common, which is why I wonder if
it's been explored) ... I want my users to have to "opt-out" of email
subscriptions in their UserProfile, rather than "opt-in" (which is
what is happening) ...
class UserProfile(models.Model):
# ...
subscriptions = models.ManyToManyField(EmailSubscription)
Right now, I can't get it to default to anything ... tried:
(default=EmailSubscription.objects.all()) ... but that isn't working.
A bug is posted at http://code.djangoproject.com/ticket/2750
I wondered if there was another way I could think about solving this
quandary ...
Thanks for your help.
Damon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---