def save(self, *args, **kwargs):
self.uid = '<STR_LIT>'.format(slugify(self.ap_code))<EOL>if not self.slug:<EOL><INDENT>if self.organization:<EOL><INDENT>self.slug = slugify(self.organization.name)<EOL><DEDENT>else:<EOL><INDENT>self.slug = slugify(self.label)<EOL><DEDENT><DEDENT>super(Party, self).save(*args, **kwargs)<EOL>
**uid**: :code:`party:{apcode}`