Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeModelManager.exclude not implemented #213

Open
tonjo opened this issue Oct 1, 2013 · 3 comments
Open

NodeModelManager.exclude not implemented #213

tonjo opened this issue Oct 1, 2013 · 3 comments

Comments

@tonjo
Copy link
Contributor

tonjo commented Oct 1, 2013

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
Copy link
Member

mhluongo commented Oct 1, 2013

Great idea. It should be quick work.
On Oct 1, 2013 9:10 AM, "tonjo" [email protected] 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//issues/213
.

@tonjo
Copy link
Contributor Author

tonjo commented Oct 1, 2013

Anyway the quickest way without it is:

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

since objects.all() is a queryset.

@tonjo
Copy link
Contributor Author

tonjo commented Mar 6, 2014

Is it difficult to implement? Hints?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants