# MIT License
# Copyright (c) 2017 MassChallenge, Inc.

from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible

@python_2_unicode_compatible
class AcceleratorModel(models.Model):
    created_at = models.DateTimeField(auto_now_add=True, null=True)
    updated_at = models.DateTimeField(auto_now=True, null=True)

    class Meta(object):
        abstract = True
        app_label = 'accelerator'
        managed = settings.ACCELERATOR_MODELS_ARE_MANAGED

    def __str__(self):
        return self.name if hasattr(self, 'name') else str(self.id)

# MIT License
# Copyright (c) 2017 MassChallenge, Inc.

from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible


@python_2_unicode_compatible
class AcceleratorModel(models.Model):
    created_at = models.DateTimeField(auto_now_add=True, null=True)
    updated_at = models.DateTimeField(auto_now=True, null=True)

    class Meta(object):
        abstract = True
        app_label = 'accelerator'
        managed = settings.ACCELERATOR_MODELS_ARE_MANAGED

    def __str__(self):
        return self.name if hasattr(self, 'name') else str(self.id)

Rename the is_alum_in_residence