Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
30574f8
Bump urllib3 from 1.26.18 to 1.26.19
dependabot[bot] Jun 18, 2024
00cc407
Bump certifi from 2023.7.22 to 2024.7.4
dependabot[bot] Jul 6, 2024
570a184
chore: translation updates (#1026)
marksweb Jul 15, 2024
6989173
Bump sentry-sdk from 1.16.0 to 2.8.0
dependabot[bot] Jul 18, 2024
3d58c36
Add crowdfunding page and stripe_payments app
amakarudze Aug 3, 2024
e14d094
Add crowdfunding link to menu
amakarudze Aug 3, 2024
26d4b81
Set begin date for payments to be fetched
amakarudze Aug 5, 2024
34fd267
Merge pull request #1029 from amakarudze/add-crowdfunding
amakarudze Aug 5, 2024
826e68d
Merge pull request #1020 from DjangoGirls/dependabot/pip/urllib3-1.26.19
amakarudze Aug 5, 2024
1b44733
Merge pull request #1024 from DjangoGirls/dependabot/pip/certifi-2024…
amakarudze Aug 5, 2024
3c2531b
Merge pull request #1028 from DjangoGirls/dependabot/pip/sentry-sdk-2…
amakarudze Aug 5, 2024
74beb16
Bump django-tinymce from 3.5.0 to 4.1.0
dependabot[bot] Aug 5, 2024
e473ea9
Merge pull request #1022 from DjangoGirls/dependabot/pip/django-tinym…
amakarudze Aug 5, 2024
202a800
ci: pre-commit autoupdate (#1030)
pre-commit-ci[bot] Aug 29, 2024
4fb472b
ci: pre-commit autoupdate (#1032)
pre-commit-ci[bot] Sep 3, 2024
0ff67ef
Bug(redirect): change environment prerequisite url
tintayadev Sep 22, 2024
44e2c29
Merge pull request #1034 from tintayadev/Fix/organizing-form-redirect…
amakarudze Sep 23, 2024
13af9b8
Merge branch 'main' into translations
marksweb Oct 1, 2024
55646c5
chore: Translations updated
marksweb Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ fail_fast: true

repos:
- repo: https://github.com/adamchainz/django-upgrade
rev: '1.19.0'
rev: '1.20.0'
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py310-plus"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions djangogirls/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def gettext(s):
"donations",
"jobboard",
"globalpartners",
"stripe_payments",
"django.contrib.sitemaps",
]

Expand Down
1 change: 1 addition & 0 deletions donations/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
path("success/<str:currency>/<str:amount>/", views.success, name="success"),
path("error/", views.error, name="error"),
path("sponsors/", views.sponsors, name="sponsors"),
path("crowdfunding/", views.crowdfunding, name="crowdfunding"),
]
7 changes: 7 additions & 0 deletions donations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from stripe.error import APIConnectionError, CardError, StripeError

from patreonmanager.models import FundraisingStatus
from stripe_payments.models import StripeCharge

from .forms import StripeForm

Expand Down Expand Up @@ -83,3 +84,9 @@ def error(request):

def sponsors(request):
return render(request, "donations/sponsors.html")


def crowdfunding(request):
total_raised = StripeCharge.objects.running_total()["total"]
recent_donors = StripeCharge.objects.all().order_by("-charge_created")[:5]
return render(request, "donations/crowdfunding.html", {"total_raised": total_raised, "donors": recent_donors})
Binary file modified locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
Loading
Loading