-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/gh-29 #69
base: develop
Are you sure you want to change the base?
feature/gh-29 #69
Conversation
track/admin.py
Outdated
|
||
try: | ||
order_numbers = list(queryset.values_list('order_number', flat=True)) | ||
queryset.update(order_status=Order.INITIATED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want to change the status here. If we already have checked it before and got a response, we want to leave it what it was. If it has not been placed yet, it has to stay what it was. and it if was already initiated, we don't need to change it.
logger.error(f"Error checking order status: {str(e)}") | ||
self.message_user(request, f"Error checking order status: {str(e)}", messages.ERROR) | ||
|
||
check_orders_status.short_description = "Check shipping status for selected orders" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll need to start a log with the log manager at the beginning and complete it at the end
log_manager.start_confirmation_log()
...
log_manager.complete_log()
No description provided.