Add Draw.successful()

It can decide if the given draw was successful:

* The word is accepted
* Work was submitted for the word
* The work was submitted on time
This commit is contained in:
Gergely Polonkai
2015-11-27 14:58:16 +01:00
parent 51035af3d0
commit e71eb45260
3 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('words', '0003_draw_word_related'),
]
operations = [
migrations.AddField(
model_name='work',
name='upload_time',
field=models.DateTimeField(default=django.utils.timezone.now),
),
]