You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'DjangoField' object has no attribute 'empty_values'
How to Reproduce the Problem
Not sure right now. Will keep this updated.
Simple Example
Datasets and Statements
Screenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
$ poetry show django-neomodel
name : django-neomodel
version : 0.2.0
description : Use Neo4j with Django!
dependencies
- django >=4.2.8
- neomodel >=5.3.0,<5.4.0
Versions
OS: Docker container based on python:debian
Library:
Neo4j: neo4j:5.22-community
Django: django = "^5.0.7"
The text was updated successfully, but these errors were encountered:
I've been able to fix the error locally by adding the following in the __init__.py
fromdjango.coreimportvalidators
...
@total_orderingclassDjangoField(object):
""" Fake Django model field object which wraps a neomodel Property """is_relation=Falseconcrete=Trueeditable=Truecreation_counter=0unique=Falseprimary_key=Falseauto_created=Falseempty_values=list(validators.EMPTY_VALUES) # <- HERE
It seems that it has not changed in Django base field here since 2013. Adding this should not break backwards compatibility.
I am going to open a PR with this change so that we cas discuss it further.
Expected Behavior (Mandatory)
List of objects displaying correctly in admin.
Actual Behavior (Mandatory)
AttributeError: 'DjangoField' object has no attribute 'empty_values'
How to Reproduce the Problem
Not sure right now. Will keep this updated.
Simple Example
Datasets and Statements
Screenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
Versions
neo4j:5.22-community
django = "^5.0.7"
The text was updated successfully, but these errors were encountered: