Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Sep 6, 2023
1 parent 85720bb commit a1dbc01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pycroft/model/_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .traffic import *
from .user import *
from .webstorage import *
from .nat import *

# hades is special: it calls `configure_mappers()` at import time.
# Therefore, importing it should happen as late as possible.
Expand Down
6 changes: 3 additions & 3 deletions pycroft/model/nat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
UniqueConstraint, func, and_, ForeignKeyConstraint
from sqlalchemy.orm import relationship, backref, remote, foreign

from pycroft.model.base import IntegerIdModel, ModelBase
from pycroft.model.types import IPAddress, MACAddress, IPNetwork
from pycroft.model.user import User
from .base import IntegerIdModel, ModelBase
from .types import IPAddress, MACAddress, IPNetwork
from .user import User


def single_ipv4_constraint(col: Column):
Expand Down

0 comments on commit a1dbc01

Please sign in to comment.