# Path: wbc/core/models.py
# class Model(models.Model):
#     created = models.DateTimeField(editable=False)
#     updated = models.DateTimeField(editable=False)
# 
#     def save(self, *args, **kwargs):
#         if not self.id:
#             self.created = now()
# 
#         self.updated = now()
#         super(Model, self).save(*args, **kwargs)
# 
#     class Meta:
#         abstract = True


from django.db import models
from wbc.core.models import Model
        return self.name

    class Meta:
        verbose_name = 'Einheit'
        verbose_name_plural = 'Einheiten'


class Muncipality(Entity):

    class Meta:
        verbose_name = 'Gemeinde'
        verbose_name_plural = 'Gemeinden'


class District(Entity):
    muncipality = models.ForeignKey(Muncipality, related_name='districts')

    class Meta:
        verbose_name = 'Bezirk'
        verbose_name_plural = 'Bezirke'


class Quarter(Entity):
    district = models.ForeignKey(District, related_name='quarters')

    class Meta:
        verbose_name = 'Ortsteil'
        verbose_name_plural = 'Ortsteile'



# Path: wbc/core/models.py
# class Model(models.Model):
#     created = models.DateTimeField(editable=False)
#     updated = models.DateTimeField(editable=False)
# 
#     def save(self, *args, **kwargs):
#         if not self.id:
#             self.created = now()
# 
#         self.updated = now()
#         super(Model, self).save(*args, **kwargs)
# 
#     class Meta:
#         abstract = True


# Path: wbc/region/models.py
from django.db import models
from wbc.core.models import Model

        return self.name

    class Meta:
        verbose_name = 'Einheit'
        verbose_name_plural = 'Einheiten'


class Muncipality(Entity):

    class Meta:
        verbose_name = 'Gemeinde'
        verbose_name_plural = 'Gemeinden'


class District(Entity):
    muncipality = models.ForeignKey(Muncipality, related_name='districts')

    class Meta:
        verbose_name = 'Bezirk'
        verbose_name_plural = 'Bezirke'


class Quarter(Entity):
    district = models.ForeignKey(District, related_name='quarters')

    class Meta:
        verbose_name = 'Ortsteil'
        verbose_name_plural = 'Ortsteile'



class Department(Model):