Skip to content

Commit 4ea9aef

Browse files
committed
Merge branch 'release/1.1.3'
2 parents 4be5ce5 + fb8e2a5 commit 4ea9aef

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
Change Log
22
==========
33

4-
2023.02.15 (v1.1.2)
4+
2023.07.21 (v1.1.3)
5+
~~~~~~~~~~~~~~~~~~~
6+
* Fix command running twice if using django rq is set
7+
8+
2023.07.18 (v1.1.2)
59
~~~~~~~~~~~~~~~~~~~
610
* Add Django 4.1+ support
711

admin_commands/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.1.2'
1+
__version__ = '1.1.3'

admin_commands/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ def execute_command_and_return_response(self, request, command, args):
6767
from django_rq import get_queue
6868
queue = get_queue('default')
6969
queue.enqueue(command.execute, request.user, args)
70+
else:
71+
command.execute(request.user, args)
7072

71-
command.execute(request.user, args)
7273
self.message_user(request, _('Command executed'))
7374
return self.response_post_save_add(request, command)
7475

0 commit comments

Comments
 (0)