# 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)


from django.db import models
from konfera.models.abstract import KonferaModel



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):

# 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
from django.db import models
from konfera.models.abstract import KonferaModel




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