Skip to content

Commit

Permalink
Create width and height fields
Browse files Browse the repository at this point in the history
  • Loading branch information
keegan committed Mar 13, 2019
1 parent e7ae585 commit 54021cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tjhsst/apps/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Create your models here.
class Clubs(models.Model):
name = models.CharField(max_length=100, primary_key = True)
height = models.IntegerField()
width = models.IntegerField()
image = models.ImageField(upload_to = "club_photos/", height_field = height, width_field = width)
description = models.CharField(max_length=5000)
link = models.CharField(max_length=200, blank = True)

0 comments on commit 54021cf

Please sign in to comment.