Skip to content

Commit 5122beb

Browse files
committed
formatted
1 parent 0ff6da0 commit 5122beb

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

backend/authentication/models.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ class User(AbstractUser, CreationDeletionMixin):
5757
verification_partner = models.ForeignKey(
5858
"User", on_delete=models.SET_NULL, null=True
5959
)
60-
user_icon = models.ForeignKey(
61-
"content.Image", on_delete=models.SET_NULL, null=True
62-
)
60+
user_icon = models.ForeignKey("content.Image", on_delete=models.SET_NULL, null=True)
6361
social_accounts = ArrayField(
6462
models.CharField(max_length=255), null=True, blank=True
6563
)

backend/backend/custom_settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'''
1+
"""
22
This file contains granular settings specifically related to the activist project.
33
For more general settings strictly related to the functioning of Django and its components,
44
please check the path: backend/backend/settings.py
5-
'''
5+
"""
66

77
# Pagination settings
88
PAGINATION_PAGE_SIZE = 20

backend/content/factories.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
from .models import Faq, Resource, ResourceTopic, Task, Topic, TopicFormat
66

7+
78
class FaqFactory(factory.django.DjangoModelFactory):
89
class Meta:
910
model = Faq
1011

1112
name = factory.Faker("name")
1213
question = factory.Faker("text")
1314

15+
1416
class ResourceFactory(factory.django.DjangoModelFactory):
1517
class Meta:
1618
model = Resource

backend/content/serializers.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
validate_object_existence,
1212
)
1313

14-
1514
from .models import Faq, Image, Resource, ResourceTopic, Task, Topic, TopicFormat
1615

1716

backend/content/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
TopicSerializer,
2020
)
2121

22+
2223
class FaqViewSet(viewsets.ModelViewSet[Faq]):
2324
queryset = Faq.objects.all()
2425
serializer_class = FaqSerializer

backend/events/serializers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def validate(self, data: Dict[str, Union[str, int]]) -> Dict[str, Union[str, int
4343
"created_by",
4444
"creation_date",
4545
"deletion_date",
46-
"event_icon"
46+
"event_icon",
4747
]
4848

4949
def isEmpty() -> bool:

0 commit comments

Comments
 (0)