Skip to content

Commit

Permalink
fix(django-countries): remove monkeypatch after Django 5 compatible v…
Browse files Browse the repository at this point in the history
…ersion released
  • Loading branch information
zyv committed Apr 2, 2024
1 parent c895bff commit 66f2d4c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
from datetime import UTC, datetime
from pathlib import Path

from django_countries.widgets import LazyChoicesMixin

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = Path(__file__).resolve().parent.parent

Expand Down Expand Up @@ -141,7 +139,3 @@
PPL_START_DATE = datetime(2021, 12, 1, 0, 0, tzinfo=UTC)
PPL_END_DATE = datetime(2022, 1, 29, 0, 0, tzinfo=UTC)
CPL_START_DATE = datetime.now(tz=UTC)

# https://github.com/SmileyChris/django-countries/pull/438
LazyChoicesMixin.get_choices = lambda self: self._choices
LazyChoicesMixin.choices = property(LazyChoicesMixin.get_choices, LazyChoicesMixin.set_choices)

0 comments on commit 66f2d4c

Please sign in to comment.