Skip to content

Instantly share code, notes, and snippets.

@edvm
Created July 22, 2015 14:15
Show Gist options
  • Select an option

  • Save edvm/ff879f7aba2652aecd7e to your computer and use it in GitHub Desktop.

Select an option

Save edvm/ff879f7aba2652aecd7e to your computer and use it in GitHub Desktop.
es de forro?
# unique_together tuple is ordered in how the name should appear
return ' '.join(
map((lambda v: v.title().replace('-', ' ')),
filter(lambda v: v is not None, [params.get(k, None) for k in self.get_unique_together_field_names()]))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment