Ralph Admin class (
ralph.admin.mixins.RalphAdmin) is built on top of regular Django Admin and has bunch of extending features. Some of them are listed below.
Ralph Admin has built-in support for importing and exporting objects (using django-import-export). Possible configuration:
resouce_class in your Admin to specify django-import-export's resource class used to handle importing and exporting of this model.
class SupportAdmin(RalphAdmin): ... resource_class = resources.SupportResource ...
_export_queryset_manager attribute in your Admin to specify which manager will be used to handle export queries. This should be string with model's attribute name for proper manager.
class SupportAdmin(RalphAdmin): ... _export_queryset_manager = 'objects_with_related' ...
Export in Admin by default use
get_querysetfrom Django's admin to properly handle all filters etc. During export from Admin,
get_querysetdefined in your Resource is not used, but it is a good practice, to point them to the same objects manager.