Created
September 12, 2013 22:11
-
-
Save decko/6544529 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def conselhos(self): | |
if self.titular.all(): | |
return "Titular no %s" % (", titular no ".join([str(mandato.conselho) for mandato in self.titular.all()])) | |
elif self.suplente.all(): | |
return "Suplente no %s" % (", suplente no ".join([str(mandato.conselho) for mandato in self.suplente.all()])) | |
else: | |
return "Sem mandato" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment