I have 3 models, the idea is that i can do many test on one product and a
product can be removed of my stock (insert values in out table) by peoples.
In django admin how can i do for blocking to insert values in Test table
when the product is in the out table(inserted in the out table)? Where
could i write the function to block the adding and how making the error or
warning message come to the admin interface telling the user that product
class Person (models.Model):
name = models.Charfield (max_lenght=15)
class Product (models.Model):
name = models.CharField (max_lenght=15)
testname = models.Charfield (max_lenght=15)
product = models.ForeignKey(Product,on_delete=models.CASCADE)
class Out (models.Model):
date= models.DateField ()
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.