from attachments.models import Attachment
from django.contrib.contenttypes import generic


class AttachmentInlines(generic.GenericStackedInline):
    model = Attachment
    extra = 1
from attachments.models import Attachment
from django.contrib.contenttypes import admin


class AttachmentInlines(admin.GenericStackedInline):
    model = Attachment
    extra = 1
Fix deprecated modules for content types
Fix deprecated modules for content types

  from attachments.models import Attachment
- from django.contrib.contenttypes import generic
+ from django.contrib.contenttypes import admin
  
  
- class AttachmentInlines(generic.GenericStackedInline):
+ class AttachmentInlines(admin.GenericStackedInline):
      model = Attachment
      extra = 1
Fix deprecated modules for content types
## Code Before:
from attachments.models import Attachment
from django.contrib.contenttypes import generic


class AttachmentInlines(generic.GenericStackedInline):
    model = Attachment
    extra = 1
## Instruction:
Fix deprecated modules for content types
## Code After:
from attachments.models import Attachment
from django.contrib.contenttypes import admin


class AttachmentInlines(admin.GenericStackedInline):
    model = Attachment
    extra = 1