Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(apis_metainfo): drop RootObject.deprecated_name #720

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.10 on 2024-03-15 10:02

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("apis_metainfo", "0011_alter_rootobject_deprecated_name"),
]

operations = [
migrations.RemoveField(
model_name="rootobject",
name="deprecated_name",
),
]
1 change: 0 additions & 1 deletion apis_core/apis_metainfo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class RootObject(GenericModel, models.Model):
By having one overarching super class we gain the advantage of unique identifiers.
"""

deprecated_name = models.CharField(max_length=255, verbose_name="Name", blank=True)
# self_contenttype: a foreign key to the respective contenttype comes in handy when querying for
# triples where the subject's or object's contenttype must be respected (e.g. get all triples
# where the subject is a Person)
Expand Down
1 change: 0 additions & 1 deletion apis_core/apis_metainfo/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class ModelTestCase(TestCase):
def setUp(cls):
# Set up data for the whole TestCase
user_type = ContentType.objects.get(app_label="auth", model="user")
RootObject.objects.create(self_contenttype=user_type, deprecated_name="foo")
RootObject.objects.create(self_contenttype=user_type)

def test_uri(self):
Expand Down
1 change: 0 additions & 1 deletion apis_core/apis_relations/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

PROPERTY_EXCLUDES = [
"self_contenttype",
"deprecated_name",
"property_class_uri",
"rootobject_ptr",
]
Expand Down
Loading