settings application

.env db params+global settings in admin model
ECVI plugin module
This commit is contained in:
2024-12-14 20:50:11 +09:00
parent 09eb249d68
commit 93994ed929
328 changed files with 190143 additions and 538 deletions

View File

@@ -27,8 +27,8 @@ class HotelForm(forms.ModelForm):
@admin.register(Hotel)
class HotelAdmin(admin.ModelAdmin):
list_display = ['name', 'pms', 'sync_button']
list_display = ['name', 'hotel_id', 'pms', 'timezone', 'description']
list_filter = ['name', 'pms', 'timezone']
def sync_button(self, obj):
return format_html(
'<a class="button" href="{}">Синхронизировать</a>',