Skip to content

Commit

Permalink
refactor(apis_relations): improve Property fields help_text
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 Mar 4, 2024
1 parent 759e973 commit 085f3ff
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by Django 4.2.10 on 2024-02-27 18:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("apis_relations", "0006_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 085f3ff

Please sign in to comment.