Skip to content

Commit

Permalink
refactor(apis_relations): Property field options
Browse files Browse the repository at this point in the history
Improve help text for Property's two name fields
  • Loading branch information
koeaw committed Feb 26, 2024
1 parent 5cf61f9 commit 3f8d95e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by Django 4.2.10 on 2024-02-13 21:05

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("apis_relations", "0005_alter_property_name_forward"),
]

operations = [
migrations.AlterField(
model_name="property",
name="name_forward",
field=models.CharField(
help_text="Predicate in an RDF subject-predicate-object triple",
max_length=255,
verbose_name="Name forward",
),
),
migrations.AlterField(
model_name="property",
name="name_reverse",
field=models.CharField(
blank=True,
help_text="'Inverse' predicate of an RDF triple, property when resources are flipped: object-inverse predicate-subject",
max_length=255,
verbose_name="Name reverse",
),
),
]
4 changes: 2 additions & 2 deletions apis_core/apis_relations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ class Meta:
name_forward = models.CharField(
max_length=255,
verbose_name="Name forward",
help_text='Inverse relation like: "is sub-class of" vs. "is super-class of".',
help_text="Predicate in an RDF subject-predicate-object triple",
)
name_reverse = models.CharField(
max_length=255,
verbose_name="Name reverse",
help_text='Inverse relation like: "is sub-class of" vs. "is super-class of".',
help_text="'Inverse' predicate of an RDF triple, property when resources are flipped: object-inverse predicate-subject",
blank=True,
)
subj_class = models.ManyToManyField(
Expand Down

0 comments on commit 3f8d95e

Please sign in to comment.