front image fields: DB change
This commit is contained in:
parent
219352ff42
commit
a03e312824
|
@ -18,7 +18,7 @@ class MenuHeadingAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
class FrontImageAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
list_editable = ['order']
|
||||
|
||||
admin.site.register(MenuHeading, MenuHeadingAdmin)
|
||||
admin.site.register(SliderBox, SliderBoxAdmin)
|
||||
|
|
|
@ -3,6 +3,8 @@ from django.db import models
|
|||
class FrontImage(models.Model):
|
||||
image = models.ImageField(upload_to='upload/frontImages/')
|
||||
caption = models.TextField(blank=True)
|
||||
is_active = models.BooleanField(default=True)
|
||||
order = models.IntegerField(default=1)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.image.url
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
<!--<p id="textTop">Welcome to the India Theatre Forum </p>-->
|
||||
<p id="textBottom"> A place where you can come and get, give, share, exchange all sorts of information, ideas, resources and more. </p>
|
||||
<div id="buttonBanner">
|
||||
<div id="buttonOne" class="buttons buttonsSelected"></div>
|
||||
<div id="buttonTwo" class="buttons buttonsSelected"></div>
|
||||
<div id="buttonThree" class="buttons buttonsSelected"></div>
|
||||
<div id="button0" class="buttons buttonsSelected"></div>
|
||||
<div id="button1" class="buttons buttonsSelected"></div>
|
||||
<div id="button2" class="buttons buttonsSelected"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user