mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 15:49:16 +02:00
Removed too complex FollowRequest model, we now use an aproved field on Follow
This commit is contained in:
parent
c97db31cb1
commit
0b2fe8439a
14 changed files with 480 additions and 306 deletions
|
@ -23,24 +23,13 @@ class FollowAdmin(admin.ModelAdmin):
|
|||
list_display = [
|
||||
'actor',
|
||||
'target',
|
||||
'approved',
|
||||
'creation_date'
|
||||
]
|
||||
search_fields = ['actor__url', 'target__url']
|
||||
list_select_related = True
|
||||
|
||||
|
||||
@admin.register(models.FollowRequest)
|
||||
class FollowRequestAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
'actor',
|
||||
'target',
|
||||
'creation_date',
|
||||
'approved'
|
||||
]
|
||||
search_fields = ['actor__url', 'target__url']
|
||||
list_filter = [
|
||||
'approved'
|
||||
]
|
||||
search_fields = ['actor__url', 'target__url']
|
||||
list_select_related = True
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue