Changes between Initial Version and Version 1 of Ticket #35827
- Timestamp:
- Oct 9, 2024, 2:45:16 PM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35827 – Description
initial v1 1 1 When defining and using a model mixin like so: 2 2 3 ``` 3 4 5 {{{ 4 6 class ModelMixin(Model): 5 7 … … 10 12 super().__init_subclass__() 11 13 breakpoint() 12 cls._my_setup_func() 14 cls._my_setup_func()https://code.djangoproject.com/ticket/35827# 13 15 14 16 class TestModel(ModelMixin): 15 17 name = models.CharField(max_length=100) 16 ``` 18 19 }}} 20 17 21 18 22 The __init_subclass__ call will be first called when the class is created here: