Skip to content

Commit

Permalink
PB-987: Add item-search to conformance endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasJoss committed Oct 9, 2024
1 parent 8566c53 commit 66048ef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/stac_api/migrations/0051_update_conformance_endpoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.8 on 2024-10-09 11:45

from django.db import migrations


def add_landing_page_version(apps, schema_editor):
LandingPage = apps.get_model("stac_api", "LandingPage")
lp = LandingPage.objects.get(version='v1')
lp.conformsTo.insert(2, 'https://api.stacspec.org/v1.0.0/item-search')
lp.save()


class Migration(migrations.Migration):
dependencies = [
("stac_api", "0050_collectionassetupload_and_more"),
]

operations = [migrations.RunPython(add_landing_page_version)]

0 comments on commit 66048ef

Please sign in to comment.