Created
October 25, 2017 19:47
-
-
Save brunoliveira8/1980df0494d8e1b5bbae60ba9948e881 to your computer and use it in GitHub Desktop.
This file contains 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
class Person(models.Model): | |
first_name = models.CharField(max_length=50) | |
last_name = models.CharField(max_length=50) | |
def __str__(self): | |
return '%s %s' % (self.first_name, self.last_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment