Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
feat(validators): contest admin form validator - fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizaMaluf committed Nov 14, 2023
1 parent 49b0710 commit 65d3708
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/contests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def status(self) -> ContestStatus:


class ContestAdminForm(forms.ModelForm[Contest]):
class Meta:
model = Contest
fields = "__all__"

def clean_start_time(self) -> Any:
start_time = self.cleaned_data.get("start_time")
if start_time and start_time <= timezone.now():
Expand Down

0 comments on commit 65d3708

Please sign in to comment.