Changes between Initial Version and Version 1 of Ticket #35827


Ignore:
Timestamp:
Oct 9, 2024, 2:45:16 PM (5 days ago)
Author:
Ben Beecher
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35827 – Description

    initial v1  
    11When defining and using a model mixin like so:
    22
    3 ```
     3
     4
     5{{{
    46class ModelMixin(Model):
    57
     
    1012        super().__init_subclass__()
    1113        breakpoint()
    12         cls._my_setup_func()
     14        cls._my_setup_func()https://code.djangoproject.com/ticket/35827#
    1315
    1416class TestModel(ModelMixin):
    1517    name = models.CharField(max_length=100)
    16 ```
     18
     19}}}
     20
    1721
    1822The __init_subclass__ call will be first called when the class is created here:
Back to Top