This commit is contained in:
iriska-gri committed 2023-11-23 14:02:44 +03:00
1 parent fc742ef2f2
commit b90574a809
8 files changed
+25 -20

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ from .models import *
class MultiDBModelAdmin(admin.ModelAdmin):
# A handy constant for the name of the alternate database.
using = "add_base"
list_display=('title', 'order')
list_editable=('order', )
def save_model(self, request, obj, form, change):
# Tell Django to save objects to the 'other' database.