Changes between Initial Version and Version 2 of Ticket #35641


Ignore:
Timestamp:
Jul 30, 2024, 3:49:22 AM (4 months ago)
Author:
Johan Dahlin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35641 – Description

    initial v2  
    2828}}}
    2929
    30 The implementation for this is fairly straight-forward, add this to models.Model.
     30Since __match_args__ must be a tuple, the attribute must be generated inside a metaclass.
    3131
    32 {{{#!python
     32~~{{{#!python
    3333    @property
    3434    def __match_args__(self) -> tuple[str, ...]:
    3535        return tuple(f.name for f in self._meta.get_fields())
    36 }}}
     36}}}~~
    3737
    3838Happy to create a PR if this is interesting.
Back to Top