Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Feature/yc 1153 #906

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions geocity/apps/core/static/css/admin/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
.selector select {
overflow-x: auto;
}

/*Reduce select2 field width so that CRUD button remain visible*/
tr .select2 {
width: 70% !important;
}
3 changes: 3 additions & 0 deletions geocity/apps/forms/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def formfield_for_foreignkey(self, db_field, request, **kwargs):

return super().formfield_for_foreignkey(db_field, request, **kwargs)

class Media:
css = {"all": ("css/admin/admin.css",)}


class FormPricesInline(admin.TabularInline, SortableInlineAdminMixin):
model = models.Form.prices.through
Expand Down