Friendモデルを管理者ツールで管理したい場合
admin.pyに以下のように編集する
admin.py
from django.contrib import admin # 元からあるやつ
from .models import Friend
admin.site.register(Friend)
Go to list of users who liked
More than 3 years have passed since last update.
Friendモデルを管理者ツールで管理したい場合
admin.pyに以下のように編集する
from django.contrib import admin # 元からあるやつ
from .models import Friend
admin.site.register(Friend)
Register as a new user and use Qiita more conveniently
Go to list of users who liked