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

Issue with Django Admin Auto-Select Behavior #5

Open
WajahatKanju opened this issue Jun 1, 2023 · 0 comments
Open

Issue with Django Admin Auto-Select Behavior #5

WajahatKanju opened this issue Jun 1, 2023 · 0 comments

Comments

@WajahatKanju
Copy link

I am experiencing an issue with the auto-select behavior in Django Admin when using the djanog-admin-datta. After creating a new object with a foreign key relationship, the newly created object is not automatically selected, requiring a manual page refresh for it to appear and be selected.

Steps to Reproduce:

Navigate to the Django Admin interface.
Go to the section where the issue occurs (e.g., the creation form for an object with a foreign key).
Click on the "+" icon below the input field for the foreign key relationship.
Create the related object in the popup or form that appears.
After creating the related object, observe that it does not immediately appear or get auto-selected.
Manually refresh the page.
Confirm that the newly created object is now displayed and selected automatically.

Expected Behavior:
Upon creating a related object in the Django Admin interface, it should appear immediately and be auto-selected without the need for a manual page refresh.

Actual Behavior:
The newly created object does not appear or get auto-selected after creation. A page refresh is required to display and select the object.

Environment:

Django version: 4.2.1
django-admin-datta version: 1.0.8

Additional Information:

I have already tried clearing browser cache and checking for JavaScript errors in the developer console without success.
I have verified that I am using the latest compatible versions of Django and the [Third-Party App Name].
I have reviewed any customizations or overrides related to this functionality, but have not found any conflicts.

Please let me know if any further information is required. Your assistance in resolving this issue is greatly appreciated.

Thank you.

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

No branches or pull requests

1 participant