Hi django users,

I have 2 db-classes:

class Writer(models.Model):
    name = models.CharField(max_length=255, unique=True)
    class Admin:
        pass
    def __unicode__(self):
        return self.name

class Book(models.Model):
    name = models.CharField(max_length=255, unique=True)
    writer = models.ManyToManyField(Game, related_name="rel_writer") #
ManyToMany


on my view i create a form like this:

MyForm = form_for_instance(name, writer))

This works perfect for me, but the field writer (m2m) have no
ordering, it looks like that the ordering is by ID or date.

Is it possible to order the ManyToMany with form_for_instance by name?


thank you all, regards michel.
--~--~---------~--~----~------------~-------~--~----~
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