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

Improving object_filter #77

Open
andybak opened this issue Jul 18, 2017 · 0 comments
Open

Improving object_filter #77

andybak opened this issue Jul 18, 2017 · 0 comments

Comments

@andybak
Copy link
Member

andybak commented Jul 18, 2017

Currently a linklist.py file has a dictionary key object_filter - which tells it which model instances it can ignore.

It currently has a couple of limitations:

  1. It means both "ignore as a source of links" and "ignore as a destination of links". There might be cases where you want one and not the other
  2. It accepts a dict as a parameter and basically does MyClass.objects.filter(**object_filter). I've got several Model classes where visibility can't be expressed as a simple dict. I would like to modify this class to also accept Q and maybe F objects.
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

1 participant