diff --git a/MANIFEST.in b/MANIFEST.in index f20dcb3..6e0cef4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ include AUTHORS CHANGES LICENSE VERSION include MANIFEST.in include *.rst +include */locale/*/LC_MESSAGES/*.mo diff --git a/edc_microbiology/migrations/0010_alter_microbiology_options_and_more.py b/edc_microbiology/migrations/0010_alter_microbiology_options_and_more.py new file mode 100644 index 0000000..aaec170 --- /dev/null +++ b/edc_microbiology/migrations/0010_alter_microbiology_options_and_more.py @@ -0,0 +1,103 @@ +# Generated by Django 4.2.5 on 2023-09-25 15:43 + +import _socket +from django.db import migrations, models +import django.db.models.manager +import django_audit_fields.fields.hostname_modification_field +import edc_sites.model_mixins + + +class Migration(migrations.Migration): + dependencies = [ + ("edc_microbiology", "0009_auto_20220711_1230"), + ] + + operations = [ + migrations.AlterModelOptions( + name="microbiology", + options={ + "default_manager_name": "objects", + "default_permissions": ( + "add", + "change", + "delete", + "view", + "export", + "import", + ), + "get_latest_by": "modified", + "ordering": ("-modified", "-created"), + "verbose_name": "Microbiology", + "verbose_name_plural": "Microbiology", + }, + ), + migrations.AlterModelManagers( + name="microbiology", + managers=[ + ("objects", django.db.models.manager.Manager()), + ("on_site", edc_sites.model_mixins.CurrentSiteManager()), + ], + ), + migrations.AlterField( + model_name="historicalmicrobiology", + name="device_created", + field=models.CharField(blank=True, max_length=10, verbose_name="Device created"), + ), + migrations.AlterField( + model_name="historicalmicrobiology", + name="device_modified", + field=models.CharField(blank=True, max_length=10, verbose_name="Device modified"), + ), + migrations.AlterField( + model_name="historicalmicrobiology", + 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="historicalmicrobiology", + 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", + ), + ), + migrations.AlterField( + model_name="microbiology", + name="device_created", + field=models.CharField(blank=True, max_length=10, verbose_name="Device created"), + ), + migrations.AlterField( + model_name="microbiology", + name="device_modified", + field=models.CharField(blank=True, max_length=10, verbose_name="Device modified"), + ), + migrations.AlterField( + model_name="microbiology", + 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="microbiology", + 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", + ), + ), + ]