@property
    def slug(self):
        slug = slugify(self.name, '-')
        if self.district:
            slug += "-%s" % slugify(self.district, '-')
        return slug
Returns slugified office in format "name-district".
dataset/ETHPy150Open openelections/openelections-core/openelex/models.py/Office.slug