Changes between Initial Version and Version 1 of Ticket #32013, comment 4


Ignore:
Timestamp:
Sep 17, 2020, 5:58:31 AM (4 years ago)
Author:
Jaap Roes

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32013, comment 4

    initial v1  
    1919}}}
    2020
     21or even
     22
     23{{{
     24self.fields["clients"].choices = [(c.pk, c.get_name()) for c in Client.objects.filter(realm=self.realm, active=True)]
     25}}}
     26
    2127Our tests don't complain, but that might just be because we're not covering/asserting deep enough. Can you confirm this code (and other code that manipulates / works with choices) will remain functional? Or should we audit the entire codebase to see this new `ModelChoiceIteratorValue` will break stuff?
    2228
Back to Top