From ccb3c2bda9c3e732523ad489dd8718f063b0494a Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Sat, 19 Nov 2022 17:43:05 +0100 Subject: [PATCH] add name --- loot/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loot/models.py b/loot/models.py index fcd366d..23a9d45 100644 --- a/loot/models.py +++ b/loot/models.py @@ -13,6 +13,9 @@ from utils.random_filename import get_file_path class LootType(models.Model): name = models.CharField(_("Name"), max_length=1000) + def __str__(self): + return self.name + class Loot(DescriptionModel, AliasModel, HistoryModel): name = models.CharField(_("Name"), max_length=1000)