mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Fix migrations
This commit is contained in:
parent
cb030cb694
commit
aad29096c1
2 changed files with 11 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 4.2.10 on 2024-04-22 16:40
|
||||
# Generated by Django 4.2.10 on 2024-04-23 20:47
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
|||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("registrar", "0086_domaininformation_updated_federal_agency_and_more"),
|
||||
("registrar", "0087_alter_domain_deleted_alter_domain_expiration_date_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
|
@ -4,10 +4,11 @@
|
|||
{% comment %}
|
||||
This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
||||
{% endcomment %}
|
||||
|
||||
{% block field_readonly %}
|
||||
{% with all_contacts=original_object.other_contacts.all %}
|
||||
{% if field.field.name == "creator" %}
|
||||
<div class="readonly">{{ field.contents }} ({{ user.verification_type }})</div>
|
||||
<div class="readonly">{{ field.contents }} ({{ user.get_verification_type_display }})</div>
|
||||
{% elif field.field.name == "other_contacts" %}
|
||||
{% if all_contacts.count > 2 %}
|
||||
<div class="readonly">
|
||||
|
@ -68,9 +69,15 @@ This is using a custom implementation fieldset.html (see admin/fieldset.html)
|
|||
{% endblock field_readonly %}
|
||||
|
||||
{% block help_text %}
|
||||
<div class="help margin-bottom-1" {% if field.field.id_for_label %} id="{{ field.field.id_for_label }}_helptext"{% endif %}>
|
||||
<div class="help {% if field.field.name != "creator" %}margin-bottom-2{% endif %}" {% if field.field.id_for_label %} id="{{ field.field.id_for_label }}_helptext"{% endif %}>
|
||||
<div>{{ field.field.help_text|safe }}</div>
|
||||
</div>
|
||||
|
||||
{% if not field.is_readonly and field.field.name == "creator" %}
|
||||
<div class="help margin-bottom-2" {% if field.field.id_for_label %} id="{{ field.field.id_for_label }}_helptext"{% endif %}>
|
||||
<div>({{ user.get_verification_type_display }})</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock help_text %}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue