Unify the way the imports work #9
1 changed files with 2 additions and 2 deletions
Import sqlalchemy.ext.hybrid as sa_hybrid
commit
0b2a1197a2
|
|
@ -10,7 +10,7 @@ import folium
|
|||
import sqlalchemy as sa
|
||||
from sqlalchemy import orm
|
||||
from sqlalchemy.dialects import postgresql as psql
|
||||
from sqlalchemy.ext import hybrid
|
||||
from sqlalchemy.ext import hybrid as sa_hybrid
|
||||
|
||||
from velofy import config
|
||||
from velofy.db import meta
|
||||
|
|
@ -124,7 +124,7 @@ class Address(meta.Base):
|
|||
"""Non-literal text representation."""
|
||||
return f"<{self.__class__.__name__}({self.street} in {self.city_name})>"
|
||||
|
||||
@hybrid.hybrid_property
|
||||
@sa_hybrid.hybrid_property
|
||||
def is_primary(self) -> bool:
|
||||
"""If an `Address` object is the earliest one entered at its location.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue