scholrly / neo4django

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

NodeModelManager.exclude not implemented #213

Open tonjo opened 10 years ago

tonjo commented 10 years ago

Are there no plans to implement it? On a NodeQuerySet it is working because it belongs to the "father Django", I suppose.

Sorry if it's not a real issue.

>>> User.objects.exclude(username='bill')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "<string>", line 2, in exclude
  File "...[cut].../neo4django/decorators.py", line 54, in not_implemented_dec
  raise NotImplementedError(func.__name__)
NotImplementedError: exclude
mhluongo commented 10 years ago

Great idea. It should be quick work. On Oct 1, 2013 9:10 AM, "tonjo" notifications@github.com wrote:

Are there no plans to implement it? On a NodeQuerySet it is working because it belongs to the "father Django", I suppose.

Sorry if it's not a real issue.

User.objects.exclude(username='bill') Traceback (most recent call last): File "", line 1, in File "", line 2, in exclude File "...[cut].../neo4django/decorators.py", line 54, in not_implemented_dec raise NotImplementedError(func.name) NotImplementedError: exclude

— Reply to this email directly or view it on GitHubhttps://github.com/scholrly/neo4django/issues/213 .

tonjo commented 10 years ago

Anyway the quickest way without it is:

 User.objects.all().exclude(username='bill')

since objects.all() is a queryset.

tonjo commented 10 years ago

Is it difficult to implement? Hints?