Skip to content

Commit

Permalink
fixed circular import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Oct 22, 2023
1 parent afbf399 commit c46385d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions memberportal/profile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pytz
import os
from django.utils.timezone import make_aware
from django.template.loader import render_to_string
from django.contrib.auth.models import (
BaseUserManager,
AbstractBaseUser,
Expand All @@ -14,8 +13,7 @@
from django.conf import settings
from constance import config
from api_general.models import SiteSession
from api_admin_tools.models import MemberTier, PaymentPlan
from access.models import Doors, Interlock, MemberbucksDevice
from api_admin_tools.models import PaymentPlan
import json
import uuid
import logging
Expand Down Expand Up @@ -50,21 +48,21 @@ class Log(models.Model):
data = models.TextField("Extra data for debugging action/event")
date = models.DateTimeField(auto_now_add=True)
door = models.ForeignKey(
Doors,
"access.Doors",
on_delete=models.CASCADE,
null=True,
default=None,
blank=True,
)
interlock = models.ForeignKey(
Interlock,
"access.Interlock",
on_delete=models.CASCADE,
null=True,
default=None,
blank=True,
)
memberbucks_device = models.ForeignKey(
MemberbucksDevice,
"access.MemberbucksDevice",
on_delete=models.CASCADE,
null=True,
default=None,
Expand Down

0 comments on commit c46385d

Please sign in to comment.