Skip to content

Commit

Permalink
chore: change cancelled to cancelled in bid status choices
Browse files Browse the repository at this point in the history
  • Loading branch information
sandronadiradze committed Nov 4, 2024
1 parent 0708c76 commit b916f40
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
2 changes: 1 addition & 1 deletion auction/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ def post(self, request, auction_id, *args, **kwargs):
needs_top_bid_update = True

# Cancel all user's bids
user_bids.update(status=BidStatusChoices.CANCELLED)
user_bids.update(status=BidStatusChoices.CANCELED)

# Update top bid if necessary
if needs_top_bid_update:
Expand Down
30 changes: 30 additions & 0 deletions bid/migrations/0007_alter_bid_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 5.0.7 on 2024-11-04 05:13

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("bid", "0006_bid_idx_bid_auction_created"),
]

operations = [
migrations.AlterField(
model_name="bid",
name="status",
field=models.CharField(
choices=[
("Pending", "Pending"),
("Approved", "Approved"),
("Rejected", "Rejected"),
("Deleted", "Deleted"),
("Revoked", "Revoked"),
("Canceled", "Canceled"),
],
default="Pending",
help_text="Status of the bid",
max_length=20,
),
),
]
2 changes: 1 addition & 1 deletion bid/models/bid.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StatusChoices(models.TextChoices):
REJECTED = "Rejected", "Rejected"
DELETED = "Deleted", "Deleted"
REVOKED = "Revoked", "Revoked"
CANCELLED = "Cancelled", "Cancelled"
CANCELED = "Canceled", "Canceled"


class Bid(models.Model):
Expand Down
14 changes: 7 additions & 7 deletions locale/ka/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-04 03:05+0000\n"
"POT-Creation-Date: 2024-11-04 05:05+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -128,20 +128,20 @@ msgstr "თქვენ არ შეგიძლიათ გააუქომ
msgid "Auction was successfully canceled."
msgstr "აუქციონის გაუქმება წარმატებით განხორციელდა."

#: auction/views.py:1364
#: auction/views.py:1363
msgid "You can not leave an auction that has already been completed."
msgstr "თქვენ არ შეგიძლიათ დატოვოთ აუქციონი რომელიც უკვე დასრულდა."

#: auction/views.py:1370
#: auction/views.py:1367
msgid "You can not leave an auction that has not started yet."
msgstr "თქვენ არ შეგიძლიათ დატოვოთ აუქციონი, რომელიც ჯერ არ დაწყებულა."

#: auction/views.py:1376

#: auction/views.py:1371
msgid "You can not leave an auction that has been cancelled, drafted."
msgstr "თქვენ არ შეგიძლიათ გაუქმებული ან drafter სტატუსის მქონე აუქციონის დატოვება."
msgstr ""
"თქვენ არ შეგიძლიათ გაუქმებული ან drafter სტატუსის მქონე აუქციონის დატოვება."

#: auction/views.py:1381
#: auction/views.py:1376
msgid "As a winner of an auction, you can not leave it."
msgstr "როგორც გამარჯვებული, თქვენ ვერ დატოვებთ აუქციონს."

Expand Down

0 comments on commit b916f40

Please sign in to comment.