from django.contrib import admin
from .models import Like
from django.contrib.contenttypes.admin import GenericStackedInline


class LikesInLine(GenericStackedInline):
    model = Like
    can_delete = True
    extra = 2


class LikeAbleAdmin(admin.ModelAdmin):
    inlines = [LikesInLine, ]

    class Meta:
        abstract = True


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    pass

c3b094b8554342f0f44653301715f42cff4539fb
<mask token>


class LikeAbleAdmin(admin.ModelAdmin):
    inlines = [LikesInLine]


    class Meta:
        abstract = True


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    pass

<mask token>


class LikesInLine(GenericStackedInline):
    <mask token>
    <mask token>
    <mask token>


class LikeAbleAdmin(admin.ModelAdmin):
    inlines = [LikesInLine]


    class Meta:
        abstract = True


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    pass

<mask token>


class LikesInLine(GenericStackedInline):
    model = Like
    can_delete = True
    extra = 2


class LikeAbleAdmin(admin.ModelAdmin):
    inlines = [LikesInLine]


    class Meta:
        abstract = True


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    pass

from django.contrib import admin
from .models import Like
from django.contrib.contenttypes.admin import GenericStackedInline


class LikesInLine(GenericStackedInline):
    model = Like
    can_delete = True
    extra = 2


class LikeAbleAdmin(admin.ModelAdmin):
    inlines = [LikesInLine]


    class Meta:
        abstract = True


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    pass

from django.contrib import admin
from .models import Like
from django.contrib.contenttypes.admin import GenericStackedInline


class LikesInLine(GenericStackedInline):
    model = Like
    can_delete = True
    extra = 2


class LikeAbleAdmin(admin.ModelAdmin):
    inlines = [LikesInLine, ]

    class Meta:
        abstract = True


@admin.register(Like)
class LikeAdmin(admin.ModelAdmin):
    pass
