Skip to content

Commit 665bebc

Browse files
committed
Removed the Update model (we use Twitter now)
1 parent 4fc52e3 commit 665bebc

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

core/admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from django.contrib import admin
99
from django.contrib.auth.admin import UserAdmin
1010
from django.contrib.auth.models import User
11-
from .models import UserProfile, CorrectSubmission, IncorrectSubmission, Problem, Team, Update, ProblemUpdate
11+
from .models import UserProfile, CorrectSubmission, IncorrectSubmission, Problem, Team, ProblemUpdate
1212

1313

1414
# Define user models
@@ -36,5 +36,4 @@ class UserAdmin(UserAdmin):
3636
admin.site.register(CorrectSubmission)
3737
admin.site.register(IncorrectSubmission)
3838
admin.site.register(Team)
39-
admin.site.register(Update)
4039
admin.site.register(ProblemUpdate)

core/models.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,6 @@ def __str__(self):
3737
return "Problem[" + self.title + "]"
3838

3939

40-
class Update(models.Model):
41-
"""Model for an update message for the CTF. Contains title, text,
42-
and date."""
43-
44-
# Information about an update
45-
title = models.CharField(max_length=200)
46-
text = models.CharField(max_length=500)
47-
time = models.DateTimeField(default=timezone.now)
48-
49-
# Magic methods
50-
def __str__(self):
51-
"""Represent the update as a string."""
52-
return "Update[" + self.title + "]"
53-
54-
5540
class UserProfile(models.Model):
5641
"""Model for a user registered with the CTF. Contains name,
5742
school, participation, solved problems, and score data."""

0 commit comments

Comments
 (0)