def get_executive_offices(self, obj):
        """Executive offices up for election on election day."""
        return reverse(
            'electionnight_api_office-election-list',
            request=self.context['request'],
            kwargs={'date': obj.date}
        )
def get_executive_offices ( self , obj ) : return reverse ( 'electionnight_api_office-election-list' , request = self . context [ 'request' ] , kwargs = { 'date' : obj . date } )
Executive offices up for election on election day.