Hi Adrian,

Thank you for your swift reply.

1) Perfect! sorted menus

2) I get a 1054, "Unknown column 'coils_buildings.principal_name' in
'order clause'" doing this
class Building(meta.Model):
    class META:
        ordering = ('principal_name',)
        admin = meta.Admin()

class Window(meta.Model):
#    ordering = ('building',)
    class META:
        admin = meta.Admin(
        ordering = ('building',)
        )
same error making this a META ordering.

(I don't need this to work for my admin interface though)

3) inline - yes, the second level of inline is not appearing: If I view
a Building I see it's own data, then the inline table of Windows, but
not the further inline tables of Lights. I don't need this to work as
the final page would be unmanageably large. What I was hoping for was a
[url] link per Window listed in the inline table which would open the
appropriate Window table. i.e to /admin/coils/windows/1232/

would it be possible for the list_display to contain a ref to a method
which returned a <a></a> link, something a bit like...

    def link(self):
        return "<a>/admin/coils/windows/%d" % self.id  ## <- obviously
not quite so 'static'!
    class META:
        admin = meta.Admin(
            list_display = ( 'link', 'building', 'reference', 'location',
'configuration')
            )

Many thanks,


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