Changes between Version 3 and Version 4 of Ticket #35827


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35827 – Description

    v3 v4  
    2727
    2828So during the init_subclass call you will have the superclass' meta object if you try to access it.
     29
     30{{{
     31
     32  55         def __init_subclass__(cls) -> None:                                                                                                             
     33  56             super().__init_subclass__()                                                                                                                       
     34  57             breakpoint()                                                                                                                                               
     35  58  ->         cls._my_setup_func()                                                                                                                                   
     36(Pdb++) cls
     37<class 'label.TestModel'>
     38(Pdb++) cls._meta
     39<Options for ModelMixin>
     40
     41}}}
Back to Top