Skip to content
Snippets Groups Projects
Commit 5043e8b1 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix 'to be approved' contract counter

parent 9c745bfd
No related branches found
No related tags found
No related merge requests found
Pipeline #13563 passed
schema.png

248 KiB

...@@ -63,7 +63,7 @@ class User(pirates_models.AbstractUser): ...@@ -63,7 +63,7 @@ class User(pirates_models.AbstractUser):
from contracts.models import Contract from contracts.models import Contract
return Contract.objects.filter(status=Contract.StatusTypes.APPROVED).count() return Contract.objects.filter(status=Contract.StatusTypes.TO_BE_APPROVED).count()
# https://docs.djangoproject.com/en/4.1/ref/models/instances/#customizing-model-loading # https://docs.djangoproject.com/en/4.1/ref/models/instances/#customizing-model-loading
@classmethod @classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment