diff options
author | ankitjavalkar | 2019-09-26 15:29:47 +0530 |
---|---|---|
committer | ankitjavalkar | 2019-09-26 15:29:47 +0530 |
commit | b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb (patch) | |
tree | 56f02b77cfda412243ecb10c88d31c7f603b726a /workshop_app/models.py | |
parent | 4a8ae597541d744c4e172dfd71b8d0a617c2d1dd (diff) | |
download | workshop_booking-b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb.tar.gz workshop_booking-b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb.tar.bz2 workshop_booking-b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb.zip |
Add banner management system to workshop website
Diffstat (limited to 'workshop_app/models.py')
-rw-r--r-- | workshop_app/models.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/workshop_app/models.py b/workshop_app/models.py index 680e075..4d589bf 100644 --- a/workshop_app/models.py +++ b/workshop_app/models.py @@ -292,3 +292,14 @@ class ProfileComments(models.Model): self.coordinator_profile, self.instructor_profile ) + +class Banner(models.Model): + """ + Add HTML for banner display on homepage + """ + title = models.CharField(max_length=500) + html = models.TextField() + active = models.BooleanField() + + def __str__(self): + return self.title |