def render(self, context, instance, placeholder):
        ''' Allows this plugin to use templates designed for a list of locations. '''
        context = super(LocationListPlugin,self).render(context,instance,placeholder)
        context['location_list'] = Location.objects.filter(status=Location.StatusChoices.active)
        return context
def render ( self , context , instance , placeholder ) : context = super ( LocationListPlugin , self ) . render ( context , instance , placeholder ) context [ 'location_list' ] = Location . objects . filter ( status = Location . StatusChoices . active ) return context
Allows this plugin to use templates designed for a list of locations.