generated from thclark/django-rabid-armadillo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MRG: Merge pull request #70 from octue/status-admin
Reinstate fieldsets for admin and make test server boot
- Loading branch information
Showing
7 changed files
with
78 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
question_basic_fieldset = ( | ||
None, | ||
{ | ||
"fields": ( | ||
"id", | ||
"status", | ||
"service_revision", | ||
"asked", | ||
"answered", | ||
"latest_heartbeat", | ||
"duration", | ||
) | ||
}, | ||
) | ||
|
||
question_db_input_values_fieldset = ("Input Values", {"classes": ("collapse",), "fields": ("input_values",)}) | ||
question_db_output_values_fieldset = ("Output Values", {"classes": ("collapse",), "fields": ("output_values",)}) | ||
|
||
question_delivery_ack_fieldset = ( | ||
"Delivery Acknowledgement", | ||
{"classes": ("collapse",), "fields": ("delivery_acknowledgement",)}, | ||
) | ||
question_log_records_fieldset = ("Log Records", {"classes": ("collapse",), "fields": ("log_records",)}) | ||
question_monitor_messages_fieldset = ("Monitor Messages", {"classes": ("collapse",), "fields": ("monitor_messages",)}) | ||
question_result_fieldset = ("Result", {"classes": ("collapse",), "fields": ("result",)}) | ||
question_exceptions_fieldset = ("Exceptions", {"classes": ("collapse",), "fields": ("exceptions",)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "django-twined" | ||
version = "0.7.1" | ||
version = "0.7.2" | ||
description = "A django app to manage octue services" | ||
authors = ["Tom Clark <[email protected]>", "Marcus Lugg <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -10,11 +10,8 @@ classifiers = [ | |
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
] | ||
repository = "https://github.com/octue/django-twined" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import django_twined.routing | ||
from channels.routing import ProtocolTypeRouter, URLRouter | ||
from channels.routing import ProtocolTypeRouter | ||
from django.core.asgi import get_asgi_application | ||
|
||
|
||
# TESTS ONLY - this sets up an asgi application for use in async testing of the consumer. | ||
# The main django application which you're writing an app for will need to set up something similar | ||
|
||
|
||
application = ProtocolTypeRouter( | ||
{"http": get_asgi_application(), "websocket": URLRouter(django_twined.routing.websocket_urlpatterns)} | ||
) | ||
application = ProtocolTypeRouter({"http": get_asgi_application()}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters