Skip to content

Instantly share code, notes, and snippets.

@ktechmidas
Created December 3, 2020 13:51
Show Gist options
  • Save ktechmidas/845662b614162277032f8307041676c6 to your computer and use it in GitHub Desktop.
Save ktechmidas/845662b614162277032f8307041676c6 to your computer and use it in GitHub Desktop.
class Airport(models.Model):
code = models.CharField(max_length=4)
fullname = models.CharField(max_length=50)
def __str__(self):
return self.fullname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment