Skip to content

Commit

Permalink
add migrations for updated django-audit-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 23, 2023
1 parent 7e49bca commit e6b703e
Showing 1 changed file with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Generated by Django 4.2.4 on 2023-08-23 01:13

import _socket
from django.db import migrations, models
import django_audit_fields.fields.hostname_modification_field


class Migration(migrations.Migration):
dependencies = [
("edc_label", "0002_alter_zpllabeltemplates_options"),
]

operations = [
migrations.AlterField(
model_name="zpllabeltemplates",
name="device_created",
field=models.CharField(blank=True, max_length=10, verbose_name="Device created"),
),
migrations.AlterField(
model_name="zpllabeltemplates",
name="device_modified",
field=models.CharField(blank=True, max_length=10, verbose_name="Device modified"),
),
migrations.AlterField(
model_name="zpllabeltemplates",
name="hostname_created",
field=models.CharField(
blank=True,
default=_socket.gethostname,
help_text="System field. (modified on create only)",
max_length=60,
verbose_name="Hostname created",
),
),
migrations.AlterField(
model_name="zpllabeltemplates",
name="hostname_modified",
field=django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
blank=True,
help_text="System field. (modified on every save)",
max_length=50,
verbose_name="Hostname modified",
),
),
]

0 comments on commit e6b703e

Please sign in to comment.