# Path: dashboard/apps/hub/managers.py
# class StateManager(models.Manager):
#     def status_json(self):
#         return json.dumps([s.status_entry() for s in self.all()])


import datetime
from django.contrib.auth.models import User
from localflavor.us.models import PhoneNumberField
from localflavor.us.us_states import US_STATES
from django.core.exceptions import NON_FIELD_ERRORS, ValidationError
from django.db import models
from django.db.models import Q
from django.template.defaultfilters import slugify
from .managers import StateManager




class ProxyUser(User):

    class Meta:
        proxy = True
        ordering = ['last_name', 'first_name']

    def __str__(self):
        return u'%s, %s' % (self.last_name, self.first_name)

class Office(models.Model):
    name = models.CharField(max_length=40)
    slug = models.SlugField(primary_key=True)

    class Meta:
        ordering = ['name']

    def __str__(self):

# Path: dashboard/apps/hub/managers.py
# class StateManager(models.Manager):
#     def status_json(self):
#         return json.dumps([s.status_entry() for s in self.all()])


# Path: dashboard/apps/hub/models.py
import datetime
from django.contrib.auth.models import User
from localflavor.us.models import PhoneNumberField
from localflavor.us.us_states import US_STATES
from django.core.exceptions import NON_FIELD_ERRORS, ValidationError
from django.db import models
from django.db.models import Q
from django.template.defaultfilters import slugify
from .managers import StateManager





class ProxyUser(User):

    class Meta:
        proxy = True
        ordering = ['last_name', 'first_name']

    def __str__(self):
        return u'%s, %s' % (self.last_name, self.first_name)

class Office(models.Model):
    name = models.CharField(max_length=40)
    slug = models.SlugField(primary_key=True)

    class Meta:
        ordering = ['name']

    def __str__(self):

        return '%s' % self.slug