mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-11-01 10:33:53 +00:00
fix: Add string representation to all models
This commit is contained in:
1 parent
3090ecda9b
commit
bc713a9fe7
2 files changed
+18
No files matched your search
@@ -13,6 +13,9 @@ class ActivitySeries(models.Model):
|
||||
name = models.CharField(max_length=1023,
|
||||
blank=False, null=False)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
||||
|
||||
|
||||
class Activity(models.Model):
|
||||
"""
|
||||
@@ -30,3 +33,6 @@ class Activity(models.Model):
|
||||
series = models.ForeignKey(ActivitySeries, related_name='instances',
|
||||
on_delete=models.PROTECT,
|
||||
blank=True, null=True)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
||||
Reference in new issue
Block a user