Skip to content

Commit

Permalink
feat: show name as identifier for Title and Profession
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Sep 27, 2023
1 parent 79da71f commit c1adf29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ class Meta:
class Title(models.Model):
name = models.CharField(max_length=255, blank=True)

def __str__(self):
return self.name


class Profession(models.Model):
name = models.CharField(max_length=255, blank=True)
parent = models.ForeignKey('self', blank=True, null=True, on_delete=models.CASCADE)

def __str__(self):
return self.name


@reversion.register(follow=["rootobject_ptr"])
class Event(LegacyStuffMixin, LegacyDateMixin, AbstractEntity):
Expand Down

0 comments on commit c1adf29

Please sign in to comment.