# coding=utf-8
from __future__ import unicode_literals
from datetime import datetime

from django.db import models

from users.models import Student
from activities.models import Activity


class StudentActivity(models.Model):
    student = models.ForeignKey(Student, verbose_name='学生')
    activity = models.ForeignKey(Activity, verbose_name='活动')
    has_finished = models.BooleanField(default=False, verbose_name='是否已完成')
    add_time = models.DateTimeField(default=datetime.now, verbose_name='添加时间')

    class Meta:
        verbose_name = '学生活动'
        verbose_name_plural = verbose_name

# coding=utf-8
from __future__ import unicode_literals
from datetime import datetime

from django.db import models

from users.models import Student
from activities.models import Activity


class StudentActivity(models.Model):
    student = models.ForeignKey(Student, verbose_name='学生')
    activity = models.ForeignKey(Activity, verbose_name='活动')
    has_finished = models.BooleanField(default=False, verbose_name='是否已完成')
    add_time = models.DateTimeField(default=datetime.now, verbose_name='添加时间')

    class Meta:
        verbose_name = '学生活动'
        verbose_name_plural = verbose_name

# coding=utf-8