refactor: cleanup

This commit is contained in:
Jacob Fredericksen 2023-11-30 13:11:59 -05:00
parent 7153bedce0
commit 1cdc2c4a41
5 changed files with 5 additions and 16 deletions

View file

@ -11,9 +11,7 @@ from django.utils.translation import gettext_lazy as _
from eav.fields import EavDatatypeField
from eav.logic.entity_pk import get_entity_pk_type
from eav.logic.managers import (
AttributeManager,
)
from eav.logic.managers import AttributeManager
from eav.logic.object_pk import get_pk_format
from eav.logic.slug import SLUGFIELD_MAX_LENGTH, generate_slug
from eav.settings import CHARFIELD_LENGTH

View file

@ -15,10 +15,7 @@ from .value import Value
class Entity:
"""
The helper class that will be attached to any entity
registered with eav.
"""
"""Helper class that will be attached to entities registered with eav."""
@staticmethod
def pre_save_handler(sender, *args, **kwargs):

View file

@ -4,9 +4,7 @@ from django.db import models
from django.db.models import ManyToManyField
from django.utils.translation import gettext_lazy as _
from eav.logic.managers import (
EnumGroupManager,
)
from eav.logic.managers import EnumGroupManager
from eav.logic.object_pk import get_pk_format
from eav.settings import CHARFIELD_LENGTH

View file

@ -1,9 +1,7 @@
from django.db import models
from django.utils.translation import gettext_lazy as _
from eav.logic.managers import (
EnumValueManager,
)
from eav.logic.managers import EnumValueManager
from eav.logic.object_pk import get_pk_format
from eav.logic.slug import SLUGFIELD_MAX_LENGTH

View file

@ -11,9 +11,7 @@ from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from eav.fields import CSVField
from eav.logic.managers import (
ValueManager,
)
from eav.logic.managers import ValueManager
from eav.logic.object_pk import get_pk_format
if TYPE_CHECKING: