Skip to content

Commit

Permalink
Removed the Update model (we use Twitter now)
Browse files Browse the repository at this point in the history
  • Loading branch information
singerng committed Jul 13, 2016
1 parent 4fc52e3 commit 665bebc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
3 changes: 1 addition & 2 deletions core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from .models import UserProfile, CorrectSubmission, IncorrectSubmission, Problem, Team, Update, ProblemUpdate
from .models import UserProfile, CorrectSubmission, IncorrectSubmission, Problem, Team, ProblemUpdate


# Define user models
Expand Down Expand Up @@ -36,5 +36,4 @@ class UserAdmin(UserAdmin):
admin.site.register(CorrectSubmission)
admin.site.register(IncorrectSubmission)
admin.site.register(Team)
admin.site.register(Update)
admin.site.register(ProblemUpdate)
15 changes: 0 additions & 15 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ def __str__(self):
return "Problem[" + self.title + "]"


class Update(models.Model):
"""Model for an update message for the CTF. Contains title, text,
and date."""

# Information about an update
title = models.CharField(max_length=200)
text = models.CharField(max_length=500)
time = models.DateTimeField(default=timezone.now)

# Magic methods
def __str__(self):
"""Represent the update as a string."""
return "Update[" + self.title + "]"


class UserProfile(models.Model):
"""Model for a user registered with the CTF. Contains name,
school, participation, solved problems, and score data."""
Expand Down

0 comments on commit 665bebc

Please sign in to comment.