mixxorz / django-service-objects

Service objects for Django
MIT License
337 stars 29 forks source link

Added support for using services in the admin view #34

Closed jackton1 closed 3 years ago

jackton1 commented 6 years ago

TODO:

jackton1 commented 6 years ago
# Sample usage.
from django.contrib import admin
from service_objects.views import ModelAdminServiceView

@admin.register(MyModel)
class MyModelAdmin(ModelAdminServiceView):
    form = MyForm
    service_class = MyCustomService
    exclude = ['test_field']
    list_filter = [ 'category']