hi all

as I wrote recently, I tried to create custom reference manager in
Django for keeping my collection of scientific publications. I'll try
to explain my problem by working example of models.py:

from django.db import models

class Author(models.Model):
    name = models.CharField(maxlength=50)

class Reference(models.Model):
    title = models.CharField(maxlength=50, primary_key=True)
    authors = models.ManyToManyField(Author)

the  ManyToManyField creates additional refdb_reference_authors table
in database with columns  "id", "reference_id", "author_id". now for
every Reference I can assign one or more Author with a link keeping in
this table. but additionally I'd like to keep the order of Author for
every reference (it is important for scientific publications),
following this way I need additional column "place" in this table. ok,
I can create and handle in manually. but is there something in Django,
what can help me? or only "Executing custom SQL"?

thank you
Maxim Loginov


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