Release version 1.4.0

This commit is contained in:
Alvaro Leonel 2018-05-26 21:36:09 -03:00
parent 2d22f44000
commit 01f9156e25
5 changed files with 23 additions and 4 deletions

2
.gitignore vendored
View file

@ -7,3 +7,5 @@ MANIFEST
htmlcov
/.idea/
*.egg-info
.tox/
.python-version

View file

@ -4,7 +4,11 @@ Changelog
1.4
----
WIP
- Adds support for django 2.0.0 (@jphamcsp and @nemesisdesign).
- Adds database index for some fields (@nemesisdesign).
- Changes the ID-based selection to a class-based selection in the methods __live_notify_badge__ and __live_notify_list__ (@AlvaroLQueiroz).
- Now extra data and slug are returned on __live_unread_notification_list__ API (@AlvaroLQueiroz).
- Fix documentation issues (@archatas, @yaoelvon and @AlvaroLQueiroz).
1.3
-----

View file

@ -8,6 +8,6 @@
"""
# PEP 386-compliant version number: N.N[.N]+[{a|b|c|rc}N[.N]+][.postN][.devN]
__version__ = '1.4.0a'
__version__ = '1.4.0'
default_app_config = 'notifications.apps.Config'

View file

@ -127,13 +127,13 @@ class NotificationQuerySet(models.query.QuerySet):
def mark_as_unsent(self, recipient=None):
qs = self.sent()
if recipient:
qs = self.filter(recipient=recipient)
qs = qs.filter(recipient=recipient)
return qs.update(emailed=False)
def mark_as_sent(self, recipient=None):
qs = self.unsent()
if recipient:
qs = self.filter(recipient=recipient)
qs = qs.filter(recipient=recipient)
return qs.update(emailed=True)

13
tox.ini Normal file
View file

@ -0,0 +1,13 @@
# -- FILE: tox.ini
[tox]
envlist =
py{27,34,35,36}-django111
py{34,35,36}-django200
[testenv]
commands =
coverage run --branch --source=notifications manage.py test
deps =
coverage
django111: Django>=1.11,<2.0
django200: Django>=2.0,<3.0