fix date in payment and imporove contract page.
This commit is contained in:
parent
af40e169ae
commit
204b0aa48e
14 changed files with 295 additions and 74 deletions
|
@ -7,6 +7,7 @@ from decimal import Decimal
|
|||
from django.utils import timezone
|
||||
from django.core.validators import MinValueValidator
|
||||
from django.conf import settings
|
||||
from _helpers.utils import jalali_converter2
|
||||
|
||||
User = get_user_model()
|
||||
|
||||
|
@ -372,3 +373,6 @@ class Payment(BaseModel):
|
|||
except Exception:
|
||||
pass
|
||||
return result
|
||||
|
||||
def jpayment_date(self):
|
||||
return jalali_converter2(self.payment_date)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue