how to add a button/on click action in Django admin page model

Published: 25/09/2018
how to add a button/on click action in Django admin page model
Source: STACKOVERFLOW.COM

I have a model where I have list of servers: Here is my mode: class Ipaddress(models.Model): ip_address=models.CharField("Ip address",max_length=20) device_type= models.ForeignKey("DeviceType", on_delete=models.CASCADE) slug = models.SlugField(unique=True) machine_name=models.CharField("Machine Name",max_length=500) user=models.CharField("User",max_length=200) department= models.ForeignKey

Read more
Related news
Comment
FACEBOOK