Skip to content

Commit

Permalink
Do not deprecate LazyChoiceField
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Braun <[email protected]>
  • Loading branch information
protoroto and fsbraun authored Dec 21, 2023
1 parent 6a18780 commit 9b53139
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cms/forms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ def __iter__(self):

class LazyChoiceField(forms.ChoiceField):

def __init__(self, *args, **kwargs):
warnings.warn("LazyChoiceField is deprecated. Use Django's ChoiceField instead.",
DeprecationWarning, stacklevel=2)
super().__init__(*args, **kwargs)

@property
def choices(self):
Expand Down

0 comments on commit 9b53139

Please sign in to comment.