I'm putting together an on-line bibliography system, and I'd like to
be able to associate with each item (book, article...) a list of
authors in the order in which they were listed in the original
publication. I'm guessing the best way to do this is with a many-to-
many relationship via an intermediary table, like so:

---
class Item(models.Model):
  ...
  authors = models.ManyToManyField('Author', related_name='editors',
blank=True, filter_interface=True)
  ...

class Author(models.Model):
  person = models.ForeignKey('Person')
  order = models.IntegerField()

class Person(models.Model):
  first_name = models.CharField(maxlength=100)
  ..
---

What's got me confused is how to set all of this up in the admin
interface. I'd like to be able to easily add new People when adding a
new Item. Any suggestions?

Thanks very much for your help!
Drew


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