diff --git a/base-requirements.txt b/base-requirements.txt index cd8474961..3049abad0 100644 --- a/base-requirements.txt +++ b/base-requirements.txt @@ -4,7 +4,7 @@ django-sitetree==1.18.0 # >=1.17.1 is (?) first version that supports Django 4. django-apptemplates==1.5 django-admin-interface==0.28.9 django-translation-aliases==0.1.0 -Django==4.2.22 +Django==5.2 docutils==0.21.2 Markdown==3.7 cmarkgfm==2024.11.20 @@ -20,7 +20,7 @@ beautifulsoup4==4.12.3 icalendar==4.0.7 chardet==4.0.0 celery[redis]==5.4.0 -django-celery-beat==2.5.0 +django-celery-beat==2.8.1 # TODO: We may drop 'django-imagekit' completely. django-imagekit==5.0 # 5.0 is first version that supports Django 4.2 django-haystack==3.2.1 @@ -33,7 +33,7 @@ python-dateutil==2.8.2 requests[security]>=2.26.0 -django-honeypot==1.0.4 # 1.0.4 is first version that supports Django 4.2 +django-honeypot>=1.3.0 django-markupfield==2.0.1 django-allauth==64.2.1 @@ -41,10 +41,10 @@ django-allauth==64.2.1 django-waffle==2.2.1 djangorestframework==3.14.0 # 3.14.0 is first version that supports Django 4.1, 4.2 support hasnt been "released" -django-filter==2.4.0 +django-filter==25.1 django-ordered-model==3.7.4 django-widget-tweaks==1.5.0 -django-countries==7.2.1 +django-countries==7.6.1 num2words==0.5.13 django-polymorphic==3.1.0 # 3.1.0 is first version that supports Django 4.0, unsure if it fully supports 4.2 sorl-thumbnail==12.11.0 diff --git a/dev-requirements.txt b/dev-requirements.txt index 1ee11a333..1a5b5982b 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -9,7 +9,7 @@ responses==0.13.3 # Extra stuff required for local dev -django-debug-toolbar==3.2.1 +django-debug-toolbar==5.2.0 coverage ddt model-bakery==1.4.0 diff --git a/sponsors/admin.py b/sponsors/admin.py index dc7278c08..d3084004a 100644 --- a/sponsors/admin.py +++ b/sponsors/admin.py @@ -201,6 +201,9 @@ def get_prepopulated_fields(self, request, obj=None): return {'slug': ['name']} return {} + @admin.display( + description="Revenue split" + ) def get_benefit_split(self, obj: SponsorshipPackage) -> str: colors = [ "#ffde57", # Python Gold @@ -223,7 +226,6 @@ def get_benefit_split(self, obj: SponsorshipPackage) -> str: html = f"