holiday tweaks 2
This commit is contained in:
parent
1a02a9011c
commit
6287dc430c
|
@ -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 = {
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
ALTER TABLE "mumbai_holiday"
|
||||
ADD "operating_schedule" text;
|
||||
ALTER TABLE "mumbai_holiday"
|
||||
ADD "day" text;
|
||||
COMMIT;
|
Loading…
Reference in New Issue
Block a user