mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Changelogs are read-only protected
This commit is contained in:
		@@ -8,7 +8,7 @@ from .serializers import ChangelogSerializer
 | 
				
			|||||||
from ..models import Changelog
 | 
					from ..models import Changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ChangelogViewSet(viewsets.ModelViewSet):
 | 
					class ChangelogViewSet(viewsets.ReadOnlyModelViewSet):
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    REST API View set.
 | 
					    REST API View set.
 | 
				
			||||||
    The djangorestframework plugin will get all `Changelog` objects, serialize it to JSON with the given serializer,
 | 
					    The djangorestframework plugin will get all `Changelog` objects, serialize it to JSON with the given serializer,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user