scholrly / neo4django

Drop-in Neo4j/Django integration.
GNU General Public License v3.0
357 stars 83 forks source link

Committing fix for issue #230, fixes __eq__ behavior on base NodeModel #231

Closed coffenbacher closed 10 years ago

coffenbacher commented 10 years ago

Actually I realized this morning that there should be a comparison for types before the PK comparisons, since obviously models of different types cannot be the same even if their PKs are equivalent (i.e. Person(pk=1) == Family(pk=1)). I'll update my pull request tonight.

coffenbacher commented 10 years ago

I think the new commit is the correct behavior