I have an admin screen for a class called Buyer.  I have several other
classes that need to be populated at the same time as Buyer.  I wanted
to collapse these.  And allow the user to expand as they add.  Below is
one of the classes BuyerAlcoholUses.  The problem is that it is not
collapsed.  Also, the text is not "Alcohol Use".  In fact, if I switch
the order of the fields it doesn't switch them.  It's like it does
exist.

class BuyerAlcoholUses(models.Model):
    #ID = models.IntegerField(primary_key=True)
    buyer = models.ForeignKey(Buyer, edit_inline=models.STACKED,
num_in_admin=1)
    have_used = models.CharField(choices=ANSWER_CHOICES, maxlength=3,
core=True)
    have_participated = models.CharField(choices=ANSWER_CHOICES,
maxlength=3, core=True)
    class Meta:
        db_table = 'buyer_alcohol_uses'
    class Admin:
        fields = (
          ('Alcohol Use', {'fields': ('have_used',
'have_participated',), 'classes': 'collapse'} )
        )


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

Reply via email to