Using the very basic example below:
`class SortableBook(models.Model):
title = models.CharField('Title', null=True, blank=True, max_length=255)
my_order = models.PositiveIntegerField(default=0, blank=False, null=False)
class Meta(object):
ordering = ('my_order',)`
Admin snippet:
`import traceback
from django.contrib import admin, messages
from django import forms
from django.contrib import messages
from report_scheduler.forms import ClientAdminForm
from report_scheduler.models import Client, ReportSchedule, ReportDefinition, ReportSet, \
AggregationDefinition, ReportFilter, ReportCriteria, ReportCriteriaSort, HistoryReport, SortableBook
from etl.models import CalendarDay
from adminsortable2.admin import SortableAdminMixin,SortableInlineAdminMixin
class MyModelAdmin(SortableAdminMixin, admin.ModelAdmin):
pass
admin.site.register(SortableBook, MyModelAdmin)`
I have many other models and admin forms also, no naming conflicts though.
I have an app that fails to render the Sort div/cell for me to click and drag.
project settings init: `INSTALLED_APPS = [
]` And the page rendering of the html: render.txt
Using the very basic example below: `class SortableBook(models.Model): title = models.CharField('Title', null=True, blank=True, max_length=255) my_order = models.PositiveIntegerField(default=0, blank=False, null=False)
Admin snippet: `import traceback
from django.contrib import admin, messages from django import forms from django.contrib import messages
from report_scheduler.forms import ClientAdminForm from report_scheduler.models import Client, ReportSchedule, ReportDefinition, ReportSet, \ AggregationDefinition, ReportFilter, ReportCriteria, ReportCriteriaSort, HistoryReport, SortableBook
from etl.models import CalendarDay from adminsortable2.admin import SortableAdminMixin,SortableInlineAdminMixin class MyModelAdmin(SortableAdminMixin, admin.ModelAdmin): pass admin.site.register(SortableBook, MyModelAdmin)`
I have many other models and admin forms also, no naming conflicts though.