Skip to content

Commit 51d30c5

Browse files
Aiq0gardenerik
andcommitted
fix: competition creation
Co-authored-by: Adam Zahradník <[email protected]>
1 parent 818bb5f commit 51d30c5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project uses the `YYYY.N` version format.
55

6+
## 2025.19 - 2025-07-10
7+
8+
### Fixed
9+
10+
- Fixed competition creation.
11+
612
## 2025.18 - 2025-07-10
713

814
### Fixed

bullet/bullet_admin/forms/competition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def __init__(self, branch, **kwargs):
4343
super().__init__(**kwargs)
4444

4545
def save(self, commit: bool = True):
46-
obj = super()
46+
obj = super().save(commit=False)
4747
obj.branch = self.branch
48-
obj.save(commit=True)
48+
obj.save()
4949

5050
current_problems = Problem.objects.filter(competition=obj)
5151
current_count = current_problems.count()

0 commit comments

Comments
 (0)