from django.contrib import admin
from .models import Genre, Movie


@admin.register(Genre)
class GenreAdmin(admin.ModelAdmin):
    list_display = ['id', 'name']
    list_display_links = ['id', 'name']


@admin.register(Movie)
class MovieAdmin(admin.ModelAdmin):
    list_display = ['title']
    list_display_links = ['title']

5ea46219f49696d5ad41846d7d7f7a2f67d4ec7e
<mask token>


@admin.register(Movie)
class MovieAdmin(admin.ModelAdmin):
    list_display = ['title']
    list_display_links = ['title']

<mask token>


@admin.register(Genre)
class GenreAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>


@admin.register(Movie)
class MovieAdmin(admin.ModelAdmin):
    list_display = ['title']
    list_display_links = ['title']

<mask token>


@admin.register(Genre)
class GenreAdmin(admin.ModelAdmin):
    list_display = ['id', 'name']
    list_display_links = ['id', 'name']


@admin.register(Movie)
class MovieAdmin(admin.ModelAdmin):
    list_display = ['title']
    list_display_links = ['title']

from django.contrib import admin
from .models import Genre, Movie


@admin.register(Genre)
class GenreAdmin(admin.ModelAdmin):
    list_display = ['id', 'name']
    list_display_links = ['id', 'name']


@admin.register(Movie)
class MovieAdmin(admin.ModelAdmin):
    list_display = ['title']
    list_display_links = ['title']
