forked from Uninett/nav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into workflows/replace-flake8-with-ruff
- Loading branch information
Showing
13 changed files
with
145 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix IPAM API crash bug that caused unnecessary error reports sent as e-mail to site admins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<form class="{{attrs.form_class }}" method="{{ attrs.method }}"{% if attrs.action %} action="{{ attrs.action }}"{% endif %}> | ||
<fieldset> | ||
<legend>{{ attrs.legend }}</legend> | ||
<div class="row"> | ||
<div class="columns medium-8"> | ||
{% for field in filter_form %} | ||
<div id="div_id_{{ field.name }}" class="ctrlHolder{% if field.errors %} error {% endif %}"> | ||
{{ field.label_tag }} | ||
{{ field }} | ||
{% for error in field.errors %} | ||
<small id="error_{{ forloop.counter}}_id_{{ field.name }}" class="error"> | ||
{{ error }} | ||
</small> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<div class="columns medium-4"> | ||
<label> </label> | ||
<input type="submit" name="submit" value="{{ attrs.submit_value }}" class="submit button postfix" id="submit-id-submit"> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<form class="{{attrs.form_class }}" method="{{ attrs.method }}"{% if attrs.action %} action="{{ attrs.action }}"{% endif %}> | ||
<fieldset> | ||
<legend>{{ attrs.legend }}</legend> | ||
<div class="row"> | ||
{% for field in filter_form %} | ||
<div class="columns medium-3"> | ||
<div id="div_id_{{ field.name }}" class="ctrlHolder{% if field.errors %} error {% endif %}"> | ||
{{ field.label_tag }} | ||
{{ field }} | ||
{% for error in field.errors %} | ||
<small id="error_{{ forloop.counter}}_id_{{ field.name }}" class="error"> | ||
{{ error }} | ||
</small> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<div class="columns medium-3"> | ||
<label> </label> | ||
<input type="submit" name="submit" value="{{ attrs.submit_value }}" class="submit button postfix" id="submit-id-submit"> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% for field in form %} | ||
<div id="div_id_{{ field.name }}" | ||
class="ctrlHolder{% if field.errors %} error{% endif %}" | ||
> | ||
<label for="id_{{ field.name }}" | ||
class="{% if field.field.required %}requiredField{% endif %}" | ||
> | ||
{{ field.label.title }} | ||
{% if field.field.required %}<span class="asteriskField">*</span>{% endif %} | ||
</label> | ||
{{ field }} | ||
{% for error in field.errors %} | ||
<small id="error_{{ forloop.counter }}_id_{{ field.name }}" class="error"> | ||
{{ error }} | ||
</small> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class TestPrefixViewSet: | ||
def test_when_prefix_address_is_unknown_it_should_not_crash(self, client): | ||
response = client.get( | ||
"/ipam/api/", | ||
follow=True, | ||
data={ | ||
"net_type": "all", | ||
"within": "192.168.42.0/24", | ||
"show_all": "True", | ||
}, | ||
) | ||
assert response.status_code == 200 |