title: How to fix djangos's decotators Error: Wrapped class must subclass ModelAdmin
body: <p>I have been whriten API for my app. End when I to start servver terminal cought this: File "/home/user/MyProjects/forest-venv/forest/logginsite/admin.py", line 11, in 
      class LScharacteristicAdmin(DynamicRawIDMixin):
    File "/home/user/MyProjects/forest-venv/lib/python3.5/site-packages/django/contrib/admin/decorators.py", line 25, in _model_admin_wrapper
      raise ValueError('Wrapped class must subclass ModelAdmin.)
  ValueError: Wrapped class must subclass ModelAdmin.
  `I'm new with django... How to fix that? </p>
  
  <p>Are depended part of my project: </p>
  
  <p>admin.py:</p>
  
  <pre><code>from django.contrib.gis import admin
  from .models import *
  from dynamic_raw_id.admin import DynamicRawIDMixin
  
  class DefaultGeoAdmin(admin.OSMGeoAdmin):
      search_fields = ['code', 'name']
      display_wkt = True
      save_on_top = True
  
  @admin.register(LScharacteristic)
  class LScharacteristicAdmin(DynamicRawIDMixin):
      list_display = ('code', 'codeLS', 'track', 'task','totalarea','explarea','protecttype' )
      dynamic_raw_id_fields = ('codeLS', )
      model = LScharacteristic
  </code></pre>
  
  <p>models.py:</p>
  
  <pre><code>    from django.db import models
      from django.utils.translation import ugettext_lazy as _
      from renter.models import RefAbstract, Renter
      from django.contrib.gis.db import models
  
      class Unit(RefAbstract):
          class Meta(RefAbstract.Meta):
              verbose_name = 'nameunit'
              verbose_name_plural = 'namesofunits'
  
      class ManageType(RefAbstract):
          class Meta(RefAbstract.Meta):
              verbose_name = 'type'
              verbose_name_plural = 'types'
  
      class CutareaShape(RefAbstract):
          class Meta(RefAbstract.Meta):
              verbose_name = 'cut'
              verbose_name_plural = 'cuts'
  
      class CutareaType(models.Model):
          name = models.TextField('name', max_length=500)
  
          def __str__(self):
              return shorten(self.name, width=60)
  
          class Meta:
              verbose_name = 'cut2'
              verbose_name_plural = 'cuts2'
  
      class Composition(RefAbstract):
          class Meta(RefAbstract.Meta):
              verbose_name = 'set'
              verbose_name_plural = 'sets'
  
      class Assortment(RefAbstract):
          class Meta(RefAbstract.Meta):
              verbose_name = 'assort'
              verbose_name_plural = 'assorts'
      class CodeLS(RefAbstract):
          class Meta(RefAbstract.Meta):
              verbose_name = 'area'
              verbose_name_plural = 'areas'
  
      class LScharacteristic(models.Model):
          code = models.IntegerField( help_text='number')
          codeLS = models.ForeignKey(CodeLS, on_delete=models.DO_NOTHING, verbose_name='id area')           
          task = models.CharField(max_length = 100, help_text ='task')
          totalrea = models.PositiveIntegerField(help_text = 'totarea')
          explarea = models.PositiveIntegerField(help_text = 'explarea')
          protecttype = models.CharField(max_length = 50, help_text = 'protecttype')
  
  class PlannedUsing(models.Model):
          #...some variables
  
  class Spatial(models.Model):
          #...some variables
  </code></pre>
  
  <p>I down't understand why django throw it. This admin.py file was created like another admin.py, witch will work in app.</p>