front image fields: DB change

This commit is contained in:
Sanj 2011-11-01 01:47:14 +00:00
parent 219352ff42
commit a03e312824
3 changed files with 7 additions and 5 deletions

View File

@ -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)

View File

@ -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

View File

@ -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>