Yep, but that doesn't work for intermediary tables, because the field
isn't BakedGoods.ingredient, it's LabelIngredients.ingredient_id. Or if
it does work, it has to reference a different table somehow.

I tried adding all that to the intermediary table, but nothing seemed
to have any effect.

<code>
lass LabelIngredients( models.Model ):
        # the foreign keys
        baked_good = models.ForeignKey( BakedGoods , edit_inline = True )
        ingredient = models.ForeignKey( Ingredients , blank = True , core =
True )
        # the extra bit
        order = models.PositiveIntegerField( maxlength = 10 ) # 10!?

#       def __str__( self ):
#               return '%s' % ( self.ingredient ) # this can't possibly be right

        class Admin:
                fields = (
                        ( 'Ingredients' , {
                                'classes' : 'collapse' ,
                                'fields' : ( 'ingredient', 'order ') ,
                                'ordering' : ( 'order' ) ,
                        } ) ,
                )
</code>

Thanks for the help!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to