As far as I can tell, the javascript is importing properly, and the
URL that it's including from in the HTML output works when I put it
straight into my browser. Here's the full definition of a model
including the fieldset definitions. When I view it in the admin
interface the 'Details' field is collapsed but without a link to
expand it.

class Location(models.Model):
        name = models.CharField(max_length=20)
        address1 = models.CharField(max_length=50)
        address2 = models.CharField(max_length=50, blank=True)
        city = models.CharField(max_length=20)
        state = models.USStateField()
        zipcode = models.CharField(max_length=10)
        country = models.CharField(max_length=20)
        latitude = models.DecimalField(max_digits=8, decimal_places=6,
blank=True, null=True)
        longitude = models.DecimalField(max_digits=8, decimal_places=6,
blank=True, null=True)
        public_transport_directions = models.TextField(blank=True)
        phone_number = models.PhoneNumberField(blank=True)
        url = models.URLField(blank=True)

        def __unicode__(self):
                return self.name

        class Admin:
                # pass
                fields = (
                        (None, {
                                'fields': ('name', 'address1', 'address2', 
'city', 'state',
'zipcode', 'country')
                        }),
                        ('Details', {
                                'classes': 'collapse',
                                'fields': ('latitude', 'longitude', 
'public_transport_directions',
'phone_number', 'url')
                        }),
                )
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to