holiday tweaks 2

This commit is contained in:
Johnson Chetty 2012-10-05 12:43:52 +02:00
parent 1a02a9011c
commit 6287dc430c
3 changed files with 2 additions and 5 deletions

View File

@ -194,8 +194,8 @@ class DepotAdmin(admin.ModelAdmin):
class HolidayAdmin(admin.ModelAdmin):
list_display = ("date", "name","day","operating_schedule")
list_editable = ("day","operating_schedule")
list_display = ("date", "name","operating_schedule")
list_editable = ("operating_schedule")
readonly_fields = ("date", "name")
search_fields = ("name", "date")
formfield_overrides = {

View File

@ -414,7 +414,6 @@ class Depot(models.Model):
class Holiday(models.Model):
date = models.DateField()
name = models.TextField(max_length=100)
day = models.TextField(max_length=20)
operating_schedule=models.TextField(max_length=20)
def __unicode__(self):

View File

@ -1,5 +1,3 @@
ALTER TABLE "mumbai_holiday"
ADD "operating_schedule" text;
ALTER TABLE "mumbai_holiday"
ADD "day" text;
COMMIT;