better django template practices [MJ-308]