|
3 | 3 |
|
4 | 4 | from django.utils import timezone |
5 | 5 | from drf_spectacular.utils import extend_schema_field |
| 6 | +from flag_engine.features.models import FeatureModel as EngineFeatureModel |
| 7 | +from flag_engine.features.models import FeatureStateModel as EngineFeatureStateModel |
| 8 | +from flag_engine.features.models import ( |
| 9 | + MultivariateFeatureOptionModel as EngineMultivariateFeatureOptionModel, |
| 10 | +) |
| 11 | +from flag_engine.features.models import ( |
| 12 | + MultivariateFeatureStateValueModel as EngineMultivariateFeatureStateValueModel, |
| 13 | +) |
| 14 | +from flag_engine.identities.models import IdentityModel as EngineIdentity |
| 15 | +from flag_engine.utils.exceptions import DuplicateFeatureState |
6 | 16 | from pydantic import ValidationError as PydanticValidationError |
7 | 17 | from pyngo import drf_error_details |
8 | 18 | from rest_framework import serializers |
|
15 | 25 | from features.serializers import ( # type: ignore[attr-defined] |
16 | 26 | FeatureStateValueSerializer, |
17 | 27 | ) |
18 | | -from util.engine_models.features.models import FeatureModel as EngineFeatureModel |
19 | | -from util.engine_models.features.models import ( |
20 | | - FeatureStateModel as EngineFeatureStateModel, |
21 | | -) |
22 | | -from util.engine_models.features.models import ( |
23 | | - MultivariateFeatureOptionModel as EngineMultivariateFeatureOptionModel, |
24 | | -) |
25 | | -from util.engine_models.features.models import ( |
26 | | - MultivariateFeatureStateValueModel as EngineMultivariateFeatureStateValueModel, |
27 | | -) |
28 | | -from util.engine_models.identities.models import IdentityModel as EngineIdentity |
29 | | -from util.engine_models.utils.exceptions import DuplicateFeatureState |
30 | 28 | from util.mappers import ( |
31 | 29 | map_engine_identity_to_identity_document, |
32 | 30 | map_feature_to_engine, |
|
0 commit comments