mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-29 11:14:51 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
33f62799d0
commit
f342f3cab6
2 changed files with 4 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ class EavDatatypeField(models.CharField):
|
|||
|
||||
if not instance.pk:
|
||||
return
|
||||
|
||||
|
||||
# added
|
||||
if not type(instance).objects.filter(pk=instance.pk).exists():
|
||||
return
|
||||
|
|
|
|||
|
|
@ -22,4 +22,6 @@ class ValueManager(models.Manager):
|
|||
|
||||
attribute = Attribute.objects.get(name=attribute[0], slug=attribute[1])
|
||||
|
||||
return self.get(attribute=attribute, entity_id=entity_id, entity_uuid=entity_uuid)
|
||||
return self.get(
|
||||
attribute=attribute, entity_id=entity_id, entity_uuid=entity_uuid
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue