Skip to content

Commit

Permalink
Merge branch 'release/1.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
RamezIssac committed Jul 21, 2023
2 parents 4be5ce5 + fb8e2a5 commit 4ea9aef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Change Log
==========

2023.02.15 (v1.1.2)
2023.07.21 (v1.1.3)
~~~~~~~~~~~~~~~~~~~
* Fix command running twice if using django rq is set

2023.07.18 (v1.1.2)
~~~~~~~~~~~~~~~~~~~
* Add Django 4.1+ support

Expand Down
2 changes: 1 addition & 1 deletion admin_commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.2'
__version__ = '1.1.3'
3 changes: 2 additions & 1 deletion admin_commands/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ def execute_command_and_return_response(self, request, command, args):
from django_rq import get_queue
queue = get_queue('default')
queue.enqueue(command.execute, request.user, args)
else:
command.execute(request.user, args)

command.execute(request.user, args)
self.message_user(request, _('Command executed'))
return self.response_post_save_add(request, command)

Expand Down

0 comments on commit 4ea9aef

Please sign in to comment.