mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 03:42:11 +01:00 
			
		
		
		
	Add script to create channels per tournament, pools and teams. Put channels in categories
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -8,8 +8,8 @@ from .models import Channel, Message
 | 
			
		||||
 | 
			
		||||
@admin.register(Channel)
 | 
			
		||||
class ChannelAdmin(admin.ModelAdmin):
 | 
			
		||||
    list_display = ('name', 'read_access', 'write_access', 'tournament', 'pool', 'team', 'private',)
 | 
			
		||||
    list_filter = ('read_access', 'write_access', 'tournament', 'private',)
 | 
			
		||||
    list_display = ('name', 'category', 'read_access', 'write_access', 'tournament', 'private',)
 | 
			
		||||
    list_filter = ('category', 'read_access', 'write_access', 'tournament', 'private',)
 | 
			
		||||
    search_fields = ('name', 'tournament__name', 'team__name', 'team__trigram',)
 | 
			
		||||
    autocomplete_fields = ('tournament', 'pool', 'team', 'invited', )
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user