Re: How do I save an object under two different classes using the admin page

2014-09-04 Thread Alex Chiaranda
Hi, in your admin.py you can implement your own version for the save_model function. Follow the documentation: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model Regards, On Wednesday, September 3, 2014 3:36:42 PM UTC-3, Alejandro Greppi

How do I save an object under two different classes using the admin page

2014-09-03 Thread Alejandro Greppi
I have an application that has defined these models: class Manufacturer(models.Model): manufacturer = models.CharField(max_length=40, unique=True) def __str__(self): return self.manufacturer and class DeviceModel(models.Model): model = models.CharField(max_length=20,