Added new location types to the homepage
parent
217b55ec02
commit
fabc697492
|
@ -10,10 +10,14 @@ class Home(View):
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
stats = []
|
stats = []
|
||||||
|
|
||||||
stats.append(("Players", Player.objects.count()))
|
stats.append(("Players", Player.objects.count()))
|
||||||
stats.append(("Bases", Base.objects.count()))
|
stats.append(("Bases", Base.objects.count()))
|
||||||
stats.append(("Shops", Shop.objects.count()))
|
stats.append(("Shops", Shop.objects.count()))
|
||||||
stats.append(("Items for Sale", ItemListing.objects.count()))
|
stats.append(("Items for Sale", ItemListing.objects.count()))
|
||||||
|
stats.append(("Towns", Town.objects.count()))
|
||||||
|
stats.append(("Farms", PublicFarm.objects.count()))
|
||||||
|
stats.append(("Attractions", Attraction.objects.count()))
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"stat_list": stats,
|
"stat_list": stats,
|
||||||
|
|
Loading…
Reference in New Issue