mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 03:42:11 +01:00 
			
		
		
		
	Add french comments on chat application
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -8,6 +8,9 @@ from .models import Channel, Message
 | 
			
		||||
 | 
			
		||||
@admin.register(Channel)
 | 
			
		||||
class ChannelAdmin(admin.ModelAdmin):
 | 
			
		||||
    """
 | 
			
		||||
    Modèle d'administration des canaux de chat.
 | 
			
		||||
    """
 | 
			
		||||
    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',)
 | 
			
		||||
@@ -16,6 +19,9 @@ class ChannelAdmin(admin.ModelAdmin):
 | 
			
		||||
 | 
			
		||||
@admin.register(Message)
 | 
			
		||||
class MessageAdmin(admin.ModelAdmin):
 | 
			
		||||
    """
 | 
			
		||||
    Modèle d'administration des messages de chat.
 | 
			
		||||
    """
 | 
			
		||||
    list_display = ('channel', 'author', 'created_at', 'updated_at', 'content',)
 | 
			
		||||
    list_filter = ('channel', 'created_at', 'updated_at',)
 | 
			
		||||
    search_fields = ('author__username', 'author__first_name', 'author__last_name', 'content',)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user