Changes between Initial Version and Version 1 of Ticket #36802
- Timestamp:
- Dec 16, 2025, 1:13:20 AM (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36802 – Description
initial v1 4 4 5 5 Naming of the many to many table: 6 >Dev Database (tables created by django 5) : base_vergunningproductgroep_producten (plural name of related model)7 >Test database (tables created by django 6) : base_vergunningproductgroep_product (just the name of the related6 - Dev Database (tables created by django 5) : base_vergunningproductgroep_producten (plural name of related model) 7 - Test database (tables created by django 6) : base_vergunningproductgroep_product (just the name of the related 8 8 9 9 No code is changed, except for the upgrade to django 6. 10 10 11 11 {{{ 12 class VergunningProductGroep(TenantModel):12 class VergunningProductGroep(TenantModel): 13 13 vergunning = models.ForeignKey(Vergunning, on_delete=models.CASCADE, related_name='vergunningproducten') 14 14 producten = models.ManyToManyField(Product, related_name='vergunningproductgroepen') … … 17 17 product_code = models.CharField(max_length=50) 18 18 omschrijving = models.CharField(max_length=50) 19 actief = models.BooleanField(default=True) 20 created = models.DateTimeField(auto_now_add=True) 21 modified = models.DateTimeField(auto_now=True) 22 19 23 20 class Meta: 24 21 verbose_name = "product" … … 39 36 }}} 40 37 41 But to no avail. 38 But to no avail. db_table seems to be ignored completely. 42 39 43 40