Skip to content

Commit 1dcc159

Browse files
committed
Merge branch 'main' into snyk_test
2 parents 0207916 + 472cf14 commit 1dcc159

File tree

8 files changed

+1079
-785
lines changed

8 files changed

+1079
-785
lines changed

CHANGELOG.md

+78
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,81 @@
1+
## [1.1.31](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.30...v1.1.31) (2025-03-04)
2+
3+
4+
### Bug Fixes
5+
6+
* new cfl package ([6b9892e](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/6b9892ee171b454936c2f1bbd56a1d3f80f720e6))
7+
8+
## [1.1.30](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.29...v1.1.30) (2025-03-03)
9+
10+
11+
### Bug Fixes
12+
13+
* new cfl package ([5e503e2](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/5e503e2822839ad35956f973312c2090dfd57456))
14+
15+
## [1.1.29](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.28...v1.1.29) (2025-03-03)
16+
17+
18+
### Bug Fixes
19+
20+
* new cfl package ([291bc13](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/291bc13dcf8b14e28dc5d2a51e551b00321d6bcd))
21+
22+
## [1.1.28](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.27...v1.1.28) (2025-02-25)
23+
24+
25+
### Bug Fixes
26+
27+
* new cfl package ([c64db43](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/c64db432cc4f7df667817b6a48eb7b1a454db244))
28+
* new cfl package ([1d1f025](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/1d1f025d13bd64affe2ff54f0072bbbd6c627fde))
29+
30+
## [1.1.27](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.26...v1.1.27) (2025-02-12)
31+
32+
33+
### Bug Fixes
34+
35+
* install cfl package v0.25.1 ([18a1103](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/18a1103661668763637068f9ab77ca4694e1263a))
36+
37+
## [1.1.26](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.25...v1.1.26) (2025-02-11)
38+
39+
40+
### Bug Fixes
41+
42+
* static and media storages ([eb19119](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/eb19119a2baaa741ed24e88261c38b1831710378))
43+
44+
## [1.1.25](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.24...v1.1.25) (2025-02-11)
45+
46+
47+
### Bug Fixes
48+
49+
* new cfl package ([57bd9b7](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/57bd9b740b6830df973f09d15021e7dd96fd1fb4))
50+
51+
## [1.1.24](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.23...v1.1.24) (2025-02-10)
52+
53+
54+
### Bug Fixes
55+
56+
* staticfiles storage ([ea5c101](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/ea5c1018e089ad3219949aa8204339ff6f3295a4))
57+
58+
## [1.1.23](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.22...v1.1.23) (2025-02-10)
59+
60+
61+
### Bug Fixes
62+
63+
* storages test ([ac40f47](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/ac40f47f14a52164a9d893b3f5c0c4df59cb3bd4))
64+
65+
## [1.1.22](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.21...v1.1.22) (2025-02-07)
66+
67+
68+
### Bug Fixes
69+
70+
* new package version ([aa516d0](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/aa516d0a76233742e0841528d8e89295ccaf0a1b))
71+
72+
## [1.1.21](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.20...v1.1.21) (2025-02-07)
73+
74+
75+
### Bug Fixes
76+
77+
* s3 storage ([7b666ac](https://github.com/ocadotechnology/codeforlife-contributor-backend/commit/7b666ac14e1c55a1a44af072e550a61422387a2e))
78+
179
## [1.1.20](https://github.com/ocadotechnology/codeforlife-contributor-backend/compare/v1.1.19...v1.1.20) (2025-01-10)
280

381

Pipfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ name = "pypi"
2222
# 5. Run `pipenv install --dev` in your terminal.
2323

2424
[packages]
25-
codeforlife = "==0.24.12"
25+
codeforlife = "==0.25.14"
2626
# 🚫 Don't add [packages] below that are inherited from the CFL package.
2727

2828
[dev-packages]
29-
codeforlife = {version = "==0.24.12", extras = ["dev"]}
29+
codeforlife = {version = "==0.25.14", extras = ["dev"]}
3030
# codeforlife = {file = "../codeforlife-package-python", editable = true, extras = ["dev"]}
3131
# 🚫 Don't add [dev-packages] below that are inherited from the CFL package.
3232

Pipfile.lock

+990-778
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/templates/rest_framework/api.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% extends "codeforlife/rest_framework/api.html" %}

api/urls.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,29 @@
1616
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1717
"""
1818

19+
from codeforlife.routers import default_router
1920
from codeforlife.urls import get_urlpatterns
2021

2122
# pylint: disable-next=wildcard-import,unused-wildcard-import
2223
from codeforlife.urls.handlers import *
2324
from django.urls import path
24-
from rest_framework.routers import DefaultRouter
2525

2626
from .views import AgreementSignatureViewSet, ContributorViewSet, LoginView
2727

28-
router = DefaultRouter()
29-
router.register(
28+
default_router.register(
3029
"agreement-signatures",
3130
AgreementSignatureViewSet,
3231
basename="agreement-signature",
3332
)
34-
router.register(
33+
default_router.register(
3534
"contributors",
3635
ContributorViewSet,
3736
basename="contributor",
3837
)
3938

4039
urlpatterns = get_urlpatterns(
4140
[
42-
*router.urls,
41+
*default_router.urls,
4342
path(
4443
"session/login/",
4544
LoginView.as_view(),

api/views/agreement_signature.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# pylint: disable-next=missing-class-docstring,too-many-ancestors
1515
class AgreementSignatureViewSet(ModelViewSet[AgreementSignature]):
1616
http_method_names = ["get", "post"]
17+
model_class = AgreementSignature
1718
serializer_class = AgreementSignatureSerializer
1819

1920
def get_queryset(self):

api/views/contributor.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
class ContributorViewSet(ModelViewSet[Contributor]):
1515
http_method_names = ["get"]
1616
permission_classes = [AllowAny]
17+
model_class = Contributor
1718
serializer_class = ContributorSerializer
1819
queryset = Contributor.objects.all()

settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
# pylint: disable-next=wildcard-import,unused-wildcard-import,wrong-import-position
2727
from codeforlife.settings import *
2828

29+
SECRET_KEY = secrets.SECRET_KEY
30+
2931
# GitHub
3032

3133
GH_ORG = "ocadotechnology"

0 commit comments

Comments
 (0)