Changes between Initial Version and Version 1 of Ticket #24561, comment 5


Ignore:
Timestamp:
Aug 24, 2023, 2:48:26 PM (9 months ago)
Author:
Natalia Bidart

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24561, comment 5

    initial v1  
    1 While reviewing/working on #31262, we noticed that the choices refactoring that is being proposed in [https://github.com/django/django/pull/16943 PR #16943] will help considerably to this ticket. Besides what is discussed in that PR, the following diff should allow model field's callable `choices` to be serialized as functions (similar to callable `default` or form ChoiceField's `choices`).
     1While reviewing/working on #31262, we noticed that the choices refactoring that is being proposed in [https://github.com/django/django/pull/16943 PR #16943] will help considerably to this ticket. Besides what is discussed in that PR, the following diff should allow model field's callable `choices` to be serialized as functions (similar to callable `default` or form ChoiceField's `choices`). Thanks Mariusz for the idea.
    22
    33{{{
Back to Top