Skip to content

Commit

Permalink
add admin for friends
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineverin committed Oct 7, 2024
1 parent 4d20b50 commit 7f23ea9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion django/src/friends/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from django.contrib import admin
from .models import Friend

# Register your models here.
@admin.register(Friend)
class FriendAdmin(admin.ModelAdmin):
list_display = ('origin', 'target', 'status', 'created_at', 'updated_at')
search_fields = ('origin', 'target')
list_filter = ('created_at', 'updated_at', 'status')

0 comments on commit 7f23ea9

Please sign in to comment.