from django.db import models
from metronus_app.model.company import Company
class Department(models.Model):
	company_id = models.ForeignKey(Company)
	name = models.CharField(max_length=30)
	registryDate = models.DateTimeField(auto_now=True)
	active=models.BooleanField()
	def __unicode__(self):
		return self.name

from django.db import models
from metronus_app.model.company import Company
class Department(models.Model):
	company_id = models.ForeignKey(Company)
	name = models.CharField(max_length=30)
	registryDate = models.DateTimeField(auto_now=True)
	active=models.BooleanField(default=True)
	def __unicode__(self):
		return self.name

Set departments to be active by default