Skip to content

Commit

Permalink
fix: let kind be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Sep 27, 2023
1 parent 70bf937 commit bc9cde0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.1.11 on 2023-09-27 02:25

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('apis_ontology', '0002_alter_event_status_alter_institution_status_and_more'),
]

operations = [
migrations.AlterField(
model_name='event',
name='kind',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='institution',
name='kind',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='place',
name='kind',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='work',
name='kind',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
8 changes: 4 additions & 4 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ class Title(models.Model):

@reversion.register(follow=["rootobject_ptr"])
class Event(LegacyStuffMixin, LegacyDateMixin, FixLegacyDateMixin, AbstractEntity):
kind = models.CharField(max_length=255, blank=True)
kind = models.CharField(max_length=255, blank=True, null=True)


@reversion.register(follow=["rootobject_ptr"])
class Institution(LegacyStuffMixin, LegacyDateMixin, FixLegacyDateMixin, AbstractEntity):
kind = models.CharField(max_length=255, blank=True)
kind = models.CharField(max_length=255, blank=True, null=True)


@reversion.register(follow=["rootobject_ptr"])
Expand All @@ -86,11 +86,11 @@ class Person(LegacyStuffMixin, LegacyDateMixin, FixLegacyDateMixin, AbstractEnti

@reversion.register(follow=["rootobject_ptr"])
class Place(LegacyStuffMixin, LegacyDateMixin, FixLegacyDateMixin, AbstractEntity):
kind = models.CharField(max_length=255, blank=True)
kind = models.CharField(max_length=255, blank=True, null=True)
lat = models.FloatField(blank=True, null=True, verbose_name="latitude")
lng = models.FloatField(blank=True, null=True, verbose_name="longitude")


@reversion.register(follow=["rootobject_ptr"])
class Work(LegacyStuffMixin, LegacyDateMixin, FixLegacyDateMixin, AbstractEntity):
kind = models.CharField(max_length=255, blank=True)
kind = models.CharField(max_length=255, blank=True, null=True)

0 comments on commit bc9cde0

Please sign in to comment.