Changes between Initial Version and Version 1 of Ticket #35641, comment 1
- Timestamp:
- Jul 30, 2024, 3:50:29 AM (5 months ago)
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.1 I 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.