# Path: radioco/apps/schedules/models.py
# WEEKDAY_CHOICES = (
#     (MO, _('Monday')),
#     (TU, _('Tuesday')),
#     (WE, _('Wednesday')),
#     (TH, _('Thursday')),
#     (FR, _('Friday')),
#     (SA, _('Saturday')),
#     (SU, _('Sunday')),
# )


import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.core.cache import cache
from django.db import models
from django.utils.translation import ugettext as _u
from django.utils.translation import ugettext_lazy as _
from rest_framework.authtoken.models import Token
from radioco.apps.schedules.models import WEEKDAY_CHOICES
        return obj


class SingletonModel(models.Model):
    objects = SingletonModelManager()

    def save(self, *args, **kwargs):
        self.pk = 1
        super(SingletonModel, self).save(*args, **kwargs)
        self._set_cache(self)

    def delete(self, *args, **kwargs):
        pass

    @classmethod
    def get_global(cls):
        obj = cls._get_cache()
        if not obj:
            obj, created = cls.objects.get_or_create(pk=1)
            cls._set_cache(obj)
        return obj

    @classmethod
    def _get_cache(cls):
        return cache.get(cls.__name__)

    @classmethod
    def _set_cache(cls, obj):
        cache.set(cls.__name__, obj)


# Path: radioco/apps/schedules/models.py
# WEEKDAY_CHOICES = (
#     (MO, _('Monday')),
#     (TU, _('Tuesday')),
#     (WE, _('Wednesday')),
#     (TH, _('Thursday')),
#     (FR, _('Friday')),
#     (SA, _('Saturday')),
#     (SU, _('Sunday')),
# )


# Path: radioco/apps/global_settings/models.py
import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.core.cache import cache
from django.db import models
from django.utils.translation import ugettext as _u
from django.utils.translation import ugettext_lazy as _
from rest_framework.authtoken.models import Token
from radioco.apps.schedules.models import WEEKDAY_CHOICES

        return obj


class SingletonModel(models.Model):
    objects = SingletonModelManager()

    def save(self, *args, **kwargs):
        self.pk = 1
        super(SingletonModel, self).save(*args, **kwargs)
        self._set_cache(self)

    def delete(self, *args, **kwargs):
        pass

    @classmethod
    def get_global(cls):
        obj = cls._get_cache()
        if not obj:
            obj, created = cls.objects.get_or_create(pk=1)
            cls._set_cache(obj)
        return obj

    @classmethod
    def _get_cache(cls):
        return cache.get(cls.__name__)

    @classmethod
    def _set_cache(cls, obj):
        cache.set(cls.__name__, obj)


    class Meta: