Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eviau-artefactual committed Nov 16, 2023
1 parent 695ec95 commit 6ae1421
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
29 changes: 14 additions & 15 deletions src/dashboard/src/main/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

# HELP TEXT VALUES

use_iso_8601 = "Use ISO 8601 (YYYY-MM-DD)"

USE_ISO8601="Use ISO 8601 (YYYY-MM-DD)"

class Migration(migrations.Migration):
dependencies = [("fpr", "__first__")]
Expand Down Expand Up @@ -158,7 +157,7 @@ class Migration(migrations.Migration):
(
"date",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
db_column="date",
blank=True,
),
Expand Down Expand Up @@ -790,7 +789,7 @@ class Migration(migrations.Migration):
(
"copyrightstatusdeterminationdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Copyright determination date",
db_column="copyrightStatusDeterminationDate",
blank=True,
Expand All @@ -799,7 +798,7 @@ class Migration(migrations.Migration):
(
"copyrightapplicablestartdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Copyright start date",
db_column="copyrightApplicableStartDate",
blank=True,
Expand All @@ -808,7 +807,7 @@ class Migration(migrations.Migration):
(
"copyrightapplicableenddate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Copyright end date",
db_column="copyrightApplicableEndDate",
blank=True,
Expand Down Expand Up @@ -946,7 +945,7 @@ class Migration(migrations.Migration):
(
"licenseapplicablestartdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="License start date",
db_column="licenseApplicableStartDate",
blank=True,
Expand All @@ -955,7 +954,7 @@ class Migration(migrations.Migration):
(
"licenseapplicableenddate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="License end date",
db_column="licenseApplicableEndDate",
blank=True,
Expand Down Expand Up @@ -1172,7 +1171,7 @@ class Migration(migrations.Migration):
(
"otherrightsapplicablestartdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Other rights start date",
db_column="otherRightsApplicableStartDate",
blank=True,
Expand All @@ -1181,7 +1180,7 @@ class Migration(migrations.Migration):
(
"otherrightsapplicableenddate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Other rights end date",
db_column="otherRightsApplicableEndDate",
blank=True,
Expand Down Expand Up @@ -1251,7 +1250,7 @@ class Migration(migrations.Migration):
(
"startdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Start",
db_column="startDate",
blank=True,
Expand All @@ -1260,7 +1259,7 @@ class Migration(migrations.Migration):
(
"enddate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="End",
db_column="endDate",
blank=True,
Expand Down Expand Up @@ -1416,7 +1415,7 @@ class Migration(migrations.Migration):
(
"statutedeterminationdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Statute determination date",
db_column="statuteInformationDeterminationDate",
blank=True,
Expand All @@ -1425,7 +1424,7 @@ class Migration(migrations.Migration):
(
"statuteapplicablestartdate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Statute start date",
db_column="statuteApplicableStartDate",
blank=True,
Expand All @@ -1434,7 +1433,7 @@ class Migration(migrations.Migration):
(
"statuteapplicableenddate",
models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
verbose_name="Statute end date",
db_column="statuteApplicableEndDate",
blank=True,
Expand Down
26 changes: 13 additions & 13 deletions src/dashboard/src/main/migrations/0004_rights.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.db import migrations
from django.db import models

use_iso_8601 = "Use ISO 8601 (YYYY-MM-DD)"
USE_ISO8601="Use ISO 8601 (YYYY-MM-DD)"

class Migration(migrations.Migration):
dependencies = [("main", "0003_archivesspacedipobjectresourcepairing_data")]
Expand Down Expand Up @@ -38,7 +38,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementcopyright",
name="copyrightapplicableenddate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Copyright end date",
db_column="copyrightApplicableEndDate",
Expand All @@ -50,7 +50,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementcopyright",
name="copyrightapplicablestartdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Copyright start date",
db_column="copyrightApplicableStartDate",
Expand Down Expand Up @@ -78,7 +78,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementcopyright",
name="copyrightstatusdeterminationdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Copyright determination date",
db_column="copyrightStatusDeterminationDate",
Expand Down Expand Up @@ -127,7 +127,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementlicense",
name="licenseapplicableenddate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="License end date",
db_column="licenseApplicableEndDate",
Expand All @@ -139,7 +139,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementlicense",
name="licenseapplicablestartdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="License start date",
db_column="licenseApplicableStartDate",
Expand Down Expand Up @@ -228,7 +228,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementotherrightsinformation",
name="otherrightsapplicableenddate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Other rights end date",
db_column="otherRightsApplicableEndDate",
Expand All @@ -240,7 +240,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementotherrightsinformation",
name="otherrightsapplicablestartdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Other rights start date",
db_column="otherRightsApplicableStartDate",
Expand Down Expand Up @@ -276,7 +276,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementrightsgranted",
name="enddate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="End",
db_column="endDate",
Expand All @@ -288,7 +288,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementrightsgranted",
name="startdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Start",
db_column="startDate",
Expand Down Expand Up @@ -343,7 +343,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementstatuteinformation",
name="statuteapplicableenddate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Statute end date",
db_column="statuteApplicableEndDate",
Expand All @@ -355,7 +355,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementstatuteinformation",
name="statuteapplicablestartdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Statute start date",
db_column="statuteApplicableStartDate",
Expand All @@ -375,7 +375,7 @@ class Migration(migrations.Migration):
model_name="rightsstatementstatuteinformation",
name="statutedeterminationdate",
field=models.TextField(
help_text=use_iso_8601,
help_text=USE_ISO8601,
null=True,
verbose_name="Statute determination date",
db_column="statuteInformationDeterminationDate",
Expand Down
28 changes: 14 additions & 14 deletions src/dashboard/src/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

# HELP TEXT VALUES

use_iso_8601 = "Use ISO 8601 (YYYY-MM-DD)"
USE_ISO8601="Use ISO 8601 (YYYY-MM-DD)"

# CUSTOM FIELDS

Expand Down Expand Up @@ -259,7 +259,7 @@ class DublinCore(models.Model):
publisher = models.TextField(db_column="publisher", blank=True)
contributor = models.TextField(db_column="contributor", blank=True)
date = models.TextField(
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
db_column="date",
blank=True,
)
Expand Down Expand Up @@ -1197,21 +1197,21 @@ class RightsStatementCopyright(models.Model):
blank=True,
null=True,
verbose_name=_("Copyright determination date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
copyrightapplicablestartdate = models.TextField(
db_column="copyrightApplicableStartDate",
blank=True,
null=True,
verbose_name=_("Copyright start date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
copyrightapplicableenddate = models.TextField(
db_column="copyrightApplicableEndDate",
blank=True,
null=True,
verbose_name=_("Copyright end date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
copyrightenddateopen = models.BooleanField(
default=False,
Expand Down Expand Up @@ -1281,14 +1281,14 @@ class RightsStatementLicense(models.Model):
blank=True,
null=True,
verbose_name=_("License start date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
licenseapplicableenddate = models.TextField(
db_column="licenseApplicableEndDate",
blank=True,
null=True,
verbose_name=_("License end date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
licenseenddateopen = models.BooleanField(
default=False,
Expand Down Expand Up @@ -1354,14 +1354,14 @@ class RightsStatementRightsGranted(models.Model):
startdate = models.TextField(
db_column="startDate",
verbose_name=_("Start"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
blank=True,
null=True,
)
enddate = models.TextField(
db_column="endDate",
verbose_name=_("End"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
blank=True,
null=True,
)
Expand Down Expand Up @@ -1423,7 +1423,7 @@ class RightsStatementStatuteInformation(models.Model):
statutedeterminationdate = models.TextField(
db_column="statuteInformationDeterminationDate",
verbose_name=_("Statute determination date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
blank=True,
null=True,
)
Expand All @@ -1432,14 +1432,14 @@ class RightsStatementStatuteInformation(models.Model):
blank=True,
null=True,
verbose_name=_("Statute start date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
statuteapplicableenddate = models.TextField(
db_column="statuteApplicableEndDate",
blank=True,
null=True,
verbose_name=_("Statute end date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
statuteenddateopen = models.BooleanField(
default=False,
Expand Down Expand Up @@ -1511,14 +1511,14 @@ class RightsStatementOtherRightsInformation(models.Model):
blank=True,
null=True,
verbose_name=_("Other rights start date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
otherrightsapplicableenddate = models.TextField(
db_column="otherRightsApplicableEndDate",
blank=True,
null=True,
verbose_name=_("Other rights end date"),
help_text=_(use_iso_8601),
help_text=_(USE_ISO8601),
)
otherrightsenddateopen = models.BooleanField(
default=False,
Expand Down

0 comments on commit 6ae1421

Please sign in to comment.