Hello

I'm making a small app that holds data of servers in our organisation
(the database existed previously, and I've created the models.py using
the inspectdb as described in:
http://docs.djangoproject.com/en/dev/howto/legacy-databases/  )

The admin site works OK, but each server is displayed as "Server
object".  I would like the admin site to display each item under its
servername.  How can I do that?

part of the models.py:
class Server(models.Model):
    id = models.IntegerField(primary_key=True)
    servername = models.CharField(max_length=192)
    ip = models.CharField(max_length=48)
    domainname = models.CharField(max_length=96, blank=True)
    os = models.CharField(max_length=96, blank=True)
    drives = models.CharField(max_length=24, blank=True)
    backedupto = models.CharField(max_length=192, blank=True)
    purpose = models.CharField(max_length=384, blank=True)
    comment = models.CharField(max_length=768, blank=True)
    siteid = models.IntegerField(null=True, blank=True)
    authid = models.IntegerField(null=True, blank=True)
    class Meta:
        db_table = u'server'




--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to