Monday, May 20, 2013
Foreign keys to generated through models
Hello,
Is this possible?
It would be perfect for my implementation. I would need something alone the lines of this:
class Membership(models.Model):
membership = models.OneToOneField(User.groups.through)
date_added = models.DateField(_('date added'), auto_now_add=True)
made_member_by = models.ForeignKey(MEMBER_MODEL, verbose_name=_('user who made him a member'), null=True)
membership_justification = models.TextField(_('membership justification'), blank=True, default='')
I don't think it is possible, but I'll ask anyway just in case. It would make my implementation much easier.
Thanks.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment