Skip to content

Commit

Permalink
one more rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrey committed Oct 30, 2024
1 parent 2376ed0 commit b3ba73a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions programs/migrations/0095_document_link.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.15 on 2024-10-29 20:03
# Generated by Django 4.2.15 on 2024-10-30 14:33

from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -30,7 +30,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="document_link",
related_name="document_link_url",
to="translations.translation",
),
),
Expand Down
2 changes: 1 addition & 1 deletion programs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Document(models.Model):
external_name = models.CharField(max_length=120, blank=True, null=True, unique=True)
text = models.ForeignKey(Translation, related_name="documents", blank=False, null=False, on_delete=models.PROTECT)
link_url = models.ForeignKey(
Translation, related_name="document_link", blank=True, null=True, on_delete=models.PROTECT
Translation, related_name="document_link_url", blank=True, null=True, on_delete=models.PROTECT
)
link_text = models.ForeignKey(
Translation, related_name="document_link_text", blank=True, null=True, on_delete=models.PROTECT
Expand Down

0 comments on commit b3ba73a

Please sign in to comment.