Commit a43ac90b authored by ibuler's avatar ibuler

Modify CRLF to LF

parent bbecbc85
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
if __name__ == '__main__':
pass
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
if __name__ == '__main__':
pass
# -*- coding: utf-8 -*-
#
from django.conf.urls import url, include
from rest_framework import routers
from .api import UserViewSet
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
urlpatterns = [
url(r'v1/', include(router.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
# -*- coding: utf-8 -*-
#
from django.conf.urls import url, include
from rest_framework import routers
from .api import UserViewSet
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
urlpatterns = [
url(r'v1/', include(router.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_fr
\ No newline at end of file
# -*- coding: utf-8 -*-
#
from rest_framework import serializers
from .models import Role, User, UserGroup
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = '__all__'
# -*- coding: utf-8 -*-
#
from rest_framework import serializers
from .models import Role, User, UserGroup
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields =
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment