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

Add an optional MAX_NUMBER_OF_FRIENDS_ALLOWED in settings #82

Open
uri-rodberg opened this issue Dec 29, 2018 · 0 comments
Open

Add an optional MAX_NUMBER_OF_FRIENDS_ALLOWED in settings #82

uri-rodberg opened this issue Dec 29, 2018 · 0 comments

Comments

@uri-rodberg
Copy link
Contributor

uri-rodberg commented Dec 29, 2018

In some websites the maximal number of friends is limited. You can add an optional MAX_NUMBER_OF_FRIENDS_ALLOWED in settings. If it's not defined then the number of friends is unlimited.

You can see for example on Speedy Net, where I defined MAX_NUMBER_OF_FRIENDS_ALLOWED = 800. I'm currently working on branch uri_merge_with_master_2018-12-28_a and you can see my latest code there:

https://github.com/speedy-net/speedy-net/tree/uri_merge_with_master_2018-12-28_a

(The code using this setting is mainly used in class LimitMaxFriendsMixin on https://github.com/speedy-net/speedy-net/blob/uri_merge_with_master_2018-12-28_a/speedy/core/friends/views.py).

Current (most up-to-date) links:
https://github.com/speedy-net/speedy-net/tree/staging
https://github.com/speedy-net/speedy-net/blob/staging/speedy/core/friends/views.py

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