Skip to content

Commit

Permalink
Added empty_values to DjangoField
Browse files Browse the repository at this point in the history
This fixes an error occuring in django >=5.0

See #102 for more details
  • Loading branch information
73VW committed Sep 23, 2024
1 parent e3ce68e commit 2cc9d07
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions django_neomodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
from functools import total_ordering

from django.conf import settings
from django.core import validators
from django.core.exceptions import ValidationError
from django.db.models import signals
from django.db.models.fields import BLANK_CHOICE_DASH
from django.conf import settings
from django.forms import fields as form_fields
from django.db.models.options import Options
from django.core.exceptions import ValidationError

from neomodel import RequiredProperty, DeflateError, StructuredNode, UniqueIdProperty
from neomodel import DeflateError, RequiredProperty, StructuredNode, UniqueIdProperty
from neomodel.sync_.core import NodeMeta
from neomodel.sync_.match import NodeSet


__author__ = "Robin Edwards"
__email__ = "[email protected]"
__license__ = "MIT"
Expand Down Expand Up @@ -46,6 +44,7 @@ class DjangoField(object):
unique = False
primary_key = False
auto_created = False
empty_values = list(validators.EMPTY_VALUES)

def __init__(self, prop, name):
self.prop = prop
Expand Down

0 comments on commit 2cc9d07

Please sign in to comment.