Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added empty_values to DjangoField #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions django_neomodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
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 django.forms import fields as form_fields
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 +45,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