Add Custom Field

Report a typo

You have the FilmAdmin class in the admin.py module:

class FilmAdmin(admin.ModelAdmin):
    ...

Change it to have only one custom field: creation_year.

The return value should be the year attribute of an object.

Write a program in Python 3
from django.contrib import admin


class FilmAdmin(admin.ModelAdmin):
...
___

Create a free account to access the full topic