#NEWLINE# @ property #NEWLINE# def slug( self ) : #NEWLINE# #INDENT# '\n        Returns slugified office in format "name-district".\n\n        Example:\n\n        >>> office = Office(state="MD", name="House of Delegates", district="35B", chamber="lower")\n        >>> office.slug\n        u\'house-of-delegates-35b\'\n        ' #NEWLINE# slug = slugify ( self . name , '-' ) #NEWLINE# if self . district : #NEWLINE# #INDENT# slug += ( '-%s' % slugify ( self . district , '-' ) ) #NEWLINE# #UNINDENT# return slug