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 possibility to specify recipient model #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rubickcz
Copy link
Member

@rubickcz rubickcz commented Oct 12, 2020

Currently, pynotify uses AUTH_USER_MODEL setting for recipient model, which is also used by Django authentication mechanism. But some projects might require to use different model for notifications, therefore PYNOTIFY_RECIPIENT_MODEL is introduced in this PR.

@rubickcz rubickcz force-pushed the add_possibility_to_change_recipient_model branch 7 times, most recently from 7184b40 to 0b8b2df Compare October 12, 2020 15:17
setup.py Outdated
@@ -14,7 +14,7 @@
requirements = [
'beautifulsoup4 ~=4.8.0',
'celery >= 4.2.0',
'django >= 2.2',
'django ~= 2.2',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The former statement installs Django 3, this library is not yet ported to Django 3.

@rubickcz rubickcz force-pushed the add_possibility_to_change_recipient_model branch 3 times, most recently from 87dbe98 to 40dcb09 Compare October 12, 2020 21:37
celery==4.2.0
django-chamber==0.5.0
django==2.2
lxml==4.5.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added missing requirements from setup.py, that prevented docs to be rendered.

@rubickcz rubickcz force-pushed the add_possibility_to_change_recipient_model branch 2 times, most recently from 7ad7431 to a723801 Compare October 12, 2020 21:45
'celery==4.*',
'django==2.*',
'django-chamber==0.*',
'lxml==4.*',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little bit restricted compatibility, but I think it's still OK.

@rubickcz rubickcz force-pushed the add_possibility_to_change_recipient_model branch from a723801 to 57d8a2c Compare October 12, 2020 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants