This commit is contained in:
zandercymatics 2024-07-30 12:39:34 -06:00
parent 5183198d56
commit d58ea347aa
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 2 additions and 3 deletions

View file

@ -1984,7 +1984,6 @@ document.addEventListener('DOMContentLoaded', function() {
/**
* An IIFE that adds the default selection on comboboxes to the input field.
* This is because this action doesn't get fired by the time the page loads
* TODO: Will be refined in #2352
*/
(function loadInitialValuesForComboBoxes() {
document.addEventListener('DOMContentLoaded', (event) => {

View file

@ -182,7 +182,7 @@ class DomainSuborganizationForm(forms.ModelForm):
# Question: If no portfolio is associated with this record,
# should we default to the user one?
# portfolio = self.request.user.portfolio
logger.warning(f"No portfolio was found for {self.instance}.")
logger.warning(f"No portfolio was found for {self.instance} on user {self.request.user}.")
self.fields["sub_organization"].queryset = Suborganization.objects.filter(portfolio=portfolio)

View file

@ -1,3 +1,3 @@
<div class="usa-combo-box">
{% include "django/forms/widgets/select.html" %}
</div>
</div>