Commit a16ca23c authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Change datetime timezone

parent ba695f2d
......@@ -2,6 +2,7 @@ from django.contrib.auth.models import AbstractUser, Group
from django.db import models
from django.conf import settings
from django.dispatch import receiver, Signal
from django.utils.timezone import make_aware
from rest_framework.authtoken.models import Token
from django.db.models.signals import post_save, m2m_changed
from datetime import datetime
......@@ -62,6 +63,10 @@ class Site(models.Model):
def __str__(self):
def client_fetched(self):
self.last_fetch = make_aware(
def clientapi_get_deployments(self, all=False):
services = {}
......@@ -84,8 +89,7 @@ class Site(models.Model):
# TODO replace this optimism with an acknowledgement
self.last_fetch =
return services
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment