Skip to content
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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

feature/gh-29 #69

wants to merge 5 commits into from

Conversation

Girik1105
Copy link
Collaborator

No description provided.

track/admin.py Outdated

try:
order_numbers = list(queryset.values_list('order_number', flat=True))
queryset.update(order_status=Order.INITIATED)
Copy link
Member

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"
Copy link
Member

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()

@jdamerow jdamerow closed this Feb 26, 2025
@Girik1105 Girik1105 reopened this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants