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 wrote:
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, unique
2 matches
Mail list logo