Skip to content

Commit

Permalink
Upgrade project's dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfs committed Aug 14, 2022
1 parent 85baec1 commit bc2db44
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 27 deletions.
2 changes: 1 addition & 1 deletion parsifal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from parsifal.utils.version import get_version

VERSION = (2, 1, 1, "final", 0)
VERSION = (2, 2, 0, "final", 0)

__version__ = get_version(VERSION)
8 changes: 3 additions & 5 deletions parsifal/apps/invites/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_context_data(self, **kwargs):
return super().get_context_data(**kwargs)


class InviteDeleteView(LoginRequiredMixin, MainAuthorRequiredMixin, ReviewMixin, DeleteView):
class InviteDeleteView(LoginRequiredMixin, MainAuthorRequiredMixin, ReviewMixin, SuccessMessageMixin, DeleteView):
model = Invite
pk_url_kwarg = "invite_id"
context_object_name = "invite"
Expand All @@ -47,10 +47,8 @@ def get_queryset(self):
def get_success_url(self):
return reverse("invites:manage_access", args=(self.review.author.username, self.review.name))

def delete(self, request, *args, **kwargs):
response = super().delete(request, *args, **kwargs)
messages.success(request, _("The invitation was removed with success."))
return response
def get_success_message(self, cleaned_data):
return _("The invitation was removed with success.")


class InviteDetailView(DetailView):
Expand Down
22 changes: 11 additions & 11 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
bibtexparser==1.2.0
Django==3.2.7
django-compressor==2.4.1
django-crispy-forms==1.13.0
dj-database-url==0.5.0
requests==2.26.0
Pillow==8.3.2
psycopg2-binary==2.9.1
python-decouple==3.4
bibtexparser==1.3.0
Django==4.1
django-compressor==4.1
django-crispy-forms==1.14.0
dj-database-url==1.0.0
requests==2.28.1
Pillow==9.2.0
psycopg2-binary==2.9.3
python-decouple==3.6
python-docx==0.8.11
pytz==2021.1
beautifulsoup4==4.10.0
pytz==2022.2.1
beautifulsoup4==4.11.1
xlwt==1.3.0
6 changes: 3 additions & 3 deletions requirements/local.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r tests.txt

django-debug-toolbar==3.2.2
django-debug-toolbar==3.5.0
git+git://github.com/jazzband/django-silk.git#egg=django-silk
ipython==7.28.0
towncrier==21.3.0
ipython==8.4.0
towncrier==21.9.0
2 changes: 1 addition & 1 deletion requirements/production.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r base.txt

gunicorn==20.1.0
sentry-sdk==1.4.2
sentry-sdk==1.9.4
12 changes: 6 additions & 6 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-r base.txt

coverage==5.5
factory-boy==3.2.0
flake8==3.9.2
isort==5.9.3
black==21.7b0
tox==3.24.4
coverage==6.4.3
factory-boy==3.2.1
flake8==5.0.4
isort==5.10.1
black==22.6.0
tox==3.25.1

0 comments on commit bc2db44

Please sign in to comment.