Changes between Initial Version and Version 1 of Ticket #36802


Ignore:
Timestamp:
Dec 16, 2025, 1:13:20 AM (2 days ago)
Author:
ericmuijs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36802 – Description

    initial v1  
    44
    55Naming 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 related
     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 related
    88 
    99No code is changed, except for the upgrade to django 6.
    1010
    1111{{{
    12   class VergunningProductGroep(TenantModel):
     12class VergunningProductGroep(TenantModel):
    1313    vergunning = models.ForeignKey(Vergunning, on_delete=models.CASCADE, related_name='vergunningproducten')
    1414    producten = models.ManyToManyField(Product, related_name='vergunningproductgroepen')
     
    1717    product_code = models.CharField(max_length=50)   
    1818    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   
    2320    class Meta:
    2421        verbose_name = "product"
     
    3936}}}
    4037
    41 But to no avail.
     38But to no avail. db_table seems to be ignored completely.
    4239
    4340
Back to Top