Skip to content

Commit

Permalink
fix(apis_metainfo)!: drop RootObject.deprecated_name
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Mar 27, 2024
1 parent 11e097d commit b752b15
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
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

0 comments on commit b752b15

Please sign in to comment.