Created
May 16, 2013 18:53
-
-
Save marcgibbons/5594120 to your computer and use it in GitHub Desktop.
Model example
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 Cigar(models.Model): | |
name = models.CharField(max_length=25) | |
colour = models.CharField(max_length=30) | |
gauge = models.IntegerField() | |
length = models.IntegerField() | |
price = models.DecimalField(decimal_places=2, max_digits=5) | |
notes = models.TextField() | |
manufacturer = models.ForeignKey('Manufacturer') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment