Re: Question about django admin customization

2010-07-08 Thread ankit rai
you just need to add one function in your models.py def somename(self): return "click here"%(self.id) somename.allow_tags = True somename.short_description = "My field" in you admin.py list_display=['somename',] i think t

Question about django admin customization

2010-07-08 Thread 玉东
Hi all, Now I am trying to do a simple admin customization: I have a model called 'host', and I have a corresponding admin class called hostAdmin and got registered. I put some fields of the 'host' model into the list_display of hostAdmin so that we can get it shown in the admin site. And it is