#30386: Admin foreign key widgets don't quote keys.
-------------------------------------+-------------------------------------
Reporter: Joshua Goodwin | Owner:
| Oluwayemisi Ismail
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
This added on top of the model changes from the
[https://github.com/django/django/pull/11280 original PR] already passes:
{{{
# In class RelatedFieldWidgetSeleniumTests...
def test_pizzas_with_topping_can_be_created(self):
from selenium.webdriver.common.by import By
self.admin_login(username="super", password="secret",
login_url="/")
self.selenium.get(
self.live_server_url +
reverse("admin:admin_widgets_pizza_add")
)
self.select_option("#id_topping", self.toppings[0].pk)
name_field = self.selenium.find_element(By.ID, "id_name")
name_field.send_keys("testing pizza")
save_button_css_selector = ".submit-row > input[type=submit]"
self.selenium.find_element(By.CSS_SELECTOR,
save_button_css_selector).click()
self.wait_for_text(
"li.success", "The pizza “testing pizza” was added
successfully."
)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30386#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701867e2cee01-8b95ef9a-b641-4a81-af38-808db2ab9a89-000000%40eu-central-1.amazonses.com.