# Path: konfera/models/abstract.py
# class KonferaModel(models.Model):
# 
#     class Meta:
#         abstract = True
# 
#     uuid = models.UUIDField(default=uuid.uuid4, editable=False)
#     date_created = models.DateTimeField(verbose_name=_('Created'), auto_now_add=True)
#     date_modified = models.DateTimeField(verbose_name=_('Last modified'), auto_now=True)
# 
# Path: konfera/models/room.py
# class Room(KonferaModel):
#     title = models.CharField(max_length=128)
#     location = models.ForeignKey('Location', related_name='rooms')
#     capacity = models.IntegerField(blank=True, null=True)
# 
#     def __str__(self):
#         return self.title
# 
#     def slugify(self):
#         return self.title.strip().replace(' ', '-').lower()


import datetime
from django.core.validators import MinValueValidator, MaxValueValidator
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from konfera.models.abstract import KonferaModel
from konfera.models.room import Room




class Schedule(KonferaModel):
    start = models.DateTimeField()
    event = models.ForeignKey('Event', related_name='schedules')

# Path: konfera/models/abstract.py
# class KonferaModel(models.Model):
# 
#     class Meta:
#         abstract = True
# 
#     uuid = models.UUIDField(default=uuid.uuid4, editable=False)
#     date_created = models.DateTimeField(verbose_name=_('Created'), auto_now_add=True)
#     date_modified = models.DateTimeField(verbose_name=_('Last modified'), auto_now=True)
# 
# Path: konfera/models/room.py
# class Room(KonferaModel):
#     title = models.CharField(max_length=128)
#     location = models.ForeignKey('Location', related_name='rooms')
#     capacity = models.IntegerField(blank=True, null=True)
# 
#     def __str__(self):
#         return self.title
# 
#     def slugify(self):
#         return self.title.strip().replace(' ', '-').lower()


# Path: konfera/models/schedule.py
import datetime
from django.core.validators import MinValueValidator, MaxValueValidator
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from konfera.models.abstract import KonferaModel
from konfera.models.room import Room





class Schedule(KonferaModel):
    start = models.DateTimeField()
    event = models.ForeignKey('Event', related_name='schedules')

    description = models.TextField(