Fix migrations

This commit is contained in:
zandercymatics 2024-04-24 09:19:15 -06:00
parent cb030cb694
commit aad29096c1
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 11 additions and 4 deletions

View file

@ -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 = [

View file

@ -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 %}