I have a few models that looks like this:

-----

class Route(models.Model):
    points = models.ManyToManyField(Base, through="RouteBase")
    often = models.IntegerField(choices=ROUTE_OFTEN, default=0)

class RouteBase(models.Model):
    point = models.ForeignKey("Base")
    route = models.ForeignKey(Route)
    sequence = models.IntegerField()

class Base(models.Model):
    identifier = models.CharField(max_length=8)
    lat = models.DecimalField(max_digits=10, decimal_places=7)
    long = models.DecimalField(max_digits=10, decimal_places=7)
    comment= models.ManyToManyField(Comment, blank=True)

-----

Everything is fine and dandy, except for when I want to use the admin
interface to create a new route. All I see is a dropdown for the
"often" field. I have to go to the RouteBase section of the admin to
add the rest. Normally if there is a ManyToMany field, in the admin
interface there will be a little green plus sign that you can use to
create a new object to attach. If the "through" option is used, it
doesn't show up. Why? Is there a way to change this behavior? Is this
a bug or is there a reason for this?
--~--~---------~--~----~------------~-------~--~----~
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