from datetime import datetime
from django.db import models
from core import mixins as core_mixins


class Event(core_mixins.DateCreatedTracking):
    name = models.CharField(max_length=85)
    start_datetime = models.DateTimeField(blank=True, null=True)
    end_datetime = models.DateTimeField(null=True, blank=True)
    attending_employers = models.TextField(null=True, blank=True)
    location = models.CharField(max_length=200, blank=True, null=True)
    description = models.TextField()
    rsvp_url = models.URLField(blank=True, null=True)
    slideshow = models.TextField(blank=True, null=True)

    def __unicode__(self):
        return self.name

    def is_past(self):
        if self.end_datetime:
            return self.end_datetime < datetime.now()
        return False

1c4b70b0c234d6ec488e0f5958ab60f69c051609
<mask token>


class Event(core_mixins.DateCreatedTracking):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def is_past(self):
        if self.end_datetime:
            return self.end_datetime < datetime.now()
        return False

<mask token>


class Event(core_mixins.DateCreatedTracking):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __unicode__(self):
        return self.name

    def is_past(self):
        if self.end_datetime:
            return self.end_datetime < datetime.now()
        return False

<mask token>


class Event(core_mixins.DateCreatedTracking):
    name = models.CharField(max_length=85)
    start_datetime = models.DateTimeField(blank=True, null=True)
    end_datetime = models.DateTimeField(null=True, blank=True)
    attending_employers = models.TextField(null=True, blank=True)
    location = models.CharField(max_length=200, blank=True, null=True)
    description = models.TextField()
    rsvp_url = models.URLField(blank=True, null=True)
    slideshow = models.TextField(blank=True, null=True)

    def __unicode__(self):
        return self.name

    def is_past(self):
        if self.end_datetime:
            return self.end_datetime < datetime.now()
        return False

from datetime import datetime
from django.db import models
from core import mixins as core_mixins


class Event(core_mixins.DateCreatedTracking):
    name = models.CharField(max_length=85)
    start_datetime = models.DateTimeField(blank=True, null=True)
    end_datetime = models.DateTimeField(null=True, blank=True)
    attending_employers = models.TextField(null=True, blank=True)
    location = models.CharField(max_length=200, blank=True, null=True)
    description = models.TextField()
    rsvp_url = models.URLField(blank=True, null=True)
    slideshow = models.TextField(blank=True, null=True)

    def __unicode__(self):
        return self.name

    def is_past(self):
        if self.end_datetime:
            return self.end_datetime < datetime.now()
        return False
