I need a one-to-many to behave like a one-to-one.

The parent instance of my model can only ever have one current child instance of another model. Multiple child instances have to exist and be kept for the historical record.

The main benefit of one-to-one relationships is that they can be mapped together (in the Admin) as an extension of the parent.

In a view I suppose I can use a manager to filter the children into a pseudo-one-to-one thingy but how do I do this in the Admin?

Maybe sort them into date order and only show one? Is there a better way?

Thanks for any help

Mike

--
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.

Reply via email to