diff --git a/src/villages/admin.py b/src/villages/admin.py index e752aaea..d2dd122e 100644 --- a/src/villages/admin.py +++ b/src/villages/admin.py @@ -7,11 +7,13 @@ from .models import Village class VillageAdmin(admin.ModelAdmin): list_display = [ 'name', + 'camp', 'private', 'deleted', ] list_filter = [ + 'camp', 'private', 'deleted', ] diff --git a/src/villages/models.py b/src/villages/models.py index 95bced02..35a77b9b 100644 --- a/src/villages/models.py +++ b/src/villages/models.py @@ -31,7 +31,7 @@ class Village(UUIDModel, CampRelatedModel): objects = VillageQuerySet.as_manager() def __str__(self): - return self.name + return "%s (%s)" % (self.name, self.camp.title) def get_absolute_url(self): return reverse_lazy('village_detail', kwargs={'camp_slug': self.camp.slug, 'slug': self.slug})