var editable = document.querySelector('#editable'); promise_test(async () => { promise_test(async function() { notEditable.focus(); var oldValue = notEditable.textContent; assert_equals(oldValue, "I'm not editable."); await test_driver.send_keys(document.body, 'a'); await promise_re...
Django admin: make field editable in add but not edit, def get_readonly_fields(self, request, obj=None): if obj: # obj is not None, so this is an edit return ['third_party_id',] # Return a list or tuple of readonly fields' names else: # This is an addi...