mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 19:48:36 +02:00
Clean
This commit is contained in:
parent
5183198d56
commit
d58ea347aa
3 changed files with 2 additions and 3 deletions
|
@ -1984,7 +1984,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
/**
|
/**
|
||||||
* An IIFE that adds the default selection on comboboxes to the input field.
|
* 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
|
* This is because this action doesn't get fired by the time the page loads
|
||||||
* TODO: Will be refined in #2352
|
|
||||||
*/
|
*/
|
||||||
(function loadInitialValuesForComboBoxes() {
|
(function loadInitialValuesForComboBoxes() {
|
||||||
document.addEventListener('DOMContentLoaded', (event) => {
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
|
|
|
@ -182,7 +182,7 @@ class DomainSuborganizationForm(forms.ModelForm):
|
||||||
# Question: If no portfolio is associated with this record,
|
# Question: If no portfolio is associated with this record,
|
||||||
# should we default to the user one?
|
# should we default to the user one?
|
||||||
# portfolio = self.request.user.portfolio
|
# 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)
|
self.fields["sub_organization"].queryset = Suborganization.objects.filter(portfolio=portfolio)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<div class="usa-combo-box">
|
<div class="usa-combo-box">
|
||||||
{% include "django/forms/widgets/select.html" %}
|
{% include "django/forms/widgets/select.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue