title: django rest api call admin action
body: <p>i created a simple model and created an admin action for it. Then i installed dango-rest and connected to model so i can use it from another machine with rest api calls. Is there a way i can call the admin action as well?</p>
  <p>Here is my sample:</p>
  <p><strong>models.py</strong></p>
  <pre><code>from django.db import models
  
  class my_model(models.Model):
      my_id = models.CharField(primary_key = True, max_length=20)
      my_line = models.CharField(max_length=20, default='#')
      my_description = models.CharField(max_length=255)
  </code></pre>
  <p><strong>admin.py</strong></p>
  <pre><code>from django.contrib import admin, messages
  from .models import my_model
  
  def precheck_action(modeladmin, request, queryset):
      for obj in queryset:
          if obj.my_line == 'second step':
              obj.my_description = 'provided'
          else:
              obj.my_description = 'waithing for second step'
          obj.save()
  
  class my_form((forms.ModelForm):
      class Meta:
          model = int_unmanaged
  
          fields = '__all__'
  
  class my_form_admin(admin.ModelAdmin):
  
      form = my_form
      list_display = ('my_id', 'my_line','my_description')
      actions = [precheck_action]
  admin.site.register(my_form, my_form_admin)
  </code></pre>
  <p>Any help on solving this or maybe a better way of doing it would be great.</p>
  <p>Thank!</p>