Skip to content

Commit

Permalink
Replace deprecated force_text
Browse files Browse the repository at this point in the history
  • Loading branch information
ushkarev committed Jun 7, 2023
1 parent cb52f7e commit a92a84c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtp_cashbook/apps/disbursements/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.core.validators import RegexValidator
from django.db import models
from django.utils import timezone
from django.utils.encoding import force_text
from django.utils.encoding import force_str
from django.utils.dateformat import format as date_format
from django.utils.dateparse import parse_date, parse_datetime
from django.utils.functional import cached_property
Expand Down Expand Up @@ -137,7 +137,7 @@ def serialise_amount(amount):


def unserialise_amount(amount_text):
amount_text = force_text(amount_text)
amount_text = force_str(amount_text)
return Decimal(amount_text)


Expand Down

0 comments on commit a92a84c

Please sign in to comment.