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
Running python manage.py install_labels returns no error.
Actual Behavior (Mandatory)
When following the tutorial, if a model is registered in admin.py using
from django_neomodel import admin as neo_admin
from .models import MyModel
[...]
neo_admin.register(MyModel, MyModelAdmin)
The following error is returned:
File "/[...]/venv/lib/python3.11/site-packages/django/contrib/admin/sites.py", line 118, in register
if model._meta.abstract:
^^^^^^^^^^^
AttributeError: type object 'MyModel' has no attribute '_meta'
I fixed it by following the next step of the tutorial, i.e.:
from django_neomodel import DjangoNode
class MyModel(DjangoNode):
[...]
class Meta:
app_label = "myapp"
How to Reproduce the Problem
Follow the tutorial.
Specifications (Mandatory)
Currently used versions: django_neomodel 0.1.1
Versions
OS: Debian 12
Neo4j: 5.11.0 (Docker)
The text was updated successfully, but these errors were encountered:
Expected Behavior (Mandatory)
Running
python manage.py install_labels
returns no error.Actual Behavior (Mandatory)
When following the tutorial, if a model is registered in
admin.py
usingThe following error is returned:
I fixed it by following the next step of the tutorial, i.e.:
How to Reproduce the Problem
Follow the tutorial.
Specifications (Mandatory)
Currently used versions:
django_neomodel 0.1.1
Versions
The text was updated successfully, but these errors were encountered: