v3
This commit is contained in:
1 parent
fc742ef2f2
commit
b90574a809
8 files changed
+25
-20
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user