Skip to content
Snippets Groups Projects
Commit e940e60f authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

groups api fix

parent 187c2685
No related branches found
No related tags found
1 merge request!2Dev
......@@ -6,9 +6,11 @@ class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = models.Group
read_only_fields = (
'id',
'name',
'description',)
fields = (
'id',
'name',
'description',
)
......
......@@ -3,5 +3,5 @@ from . import views
router = routers.DefaultRouter()
router.register(r'group', views.GroupViewSet, base_name='group')
router.register(r'groups', views.GroupsViewSet, base_name='groups')
urlpatterns = router.urls
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment