<reponame>taylortbb/django-oauth2-provider<gh_stars>0
from django.utils import timezone
from django.db import models


class AccessTokenManager(models.Manager):
    def get_token(self, token):
        return self.get(token=token, expires__gt=timezone.now())

from django.utils import timezone
from django.db import models


class AccessTokenManager(models.Manager):
    def get_token(self, token):
        return self.get(token=token, expires__gt=timezone.now())