forked from botswana-harvard/edc-label
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add migrations for updated django-audit-fields
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
edc_label/migrations/0003_alter_zpllabeltemplates_device_created_and_more.py
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,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", | ||
), | ||
), | ||
] |