Neomodel / py2neo - 'NodeMeta' object is not iterable

718 views Asked by At

I am new to Neomodel and Neo4J. I am running a remote Neo4J server on Amazon Ec2, developing locally and running into issues when trying to access the project via the browser.

When attempting to access the project via my browser, I get the following error:

TypeError at /
'NodeMeta' object is not iterable

Here is my admin.py file:

from django.contrib import admin

from app.admin import BaseAppAdmin
from .nodes import TwitterPost

class TweetAdmin(BaseAppAdmin, admin.ModelAdmin):
    list_display = ('postId', 'text')
    search_fields = ('text',)

admin.site.register(TwitterPost, TweetAdmin)

I have been reading through the docs in py2neo on batch read/write functionality, but I am not sure how to implement this. ( http://book.py2neo.org/en/latest/batches/#py2neo.neo4j.ReadBatch )

Any help or guidance is greatly appreciated!

1

There are 1 answers

3
rob On BEST ANSWER

I am presuming TwitterPost is a StructuredNode definition? It looks like your trying to register it with django admin however neomodel nodes don't integrate with django admin (yet) but patches are most welcome :-)

Rob