Changes between Initial Version and Version 1 of Ticket #35641, comment 1


Ignore:
Timestamp:
Jul 30, 2024, 3:50:29 AM (7 weeks ago)
Author:
Johan Dahlin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35641, comment 1

    initial v1  
    1 Sorry, I got confused, __match_args__ needs to be a tuple and cannot be a property, so my suggested implementation above is too simplistic. I real one would have to be a bit more involved and generate the values and create a tuple inside the models metaclass.
     1I removed an earlier comment about a simple/straight-forward implementation using a @property but it won't work as, __match_args__ needs to be a tuple and cannot be a property, so my suggested implementation above is too simplistic. I real one would have to be a bit more involved and generate the values and create a tuple inside the models metaclass.
Back to Top