Skip to content

Commit

Permalink
update user batch api
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhatiam committed Mar 16, 2017
1 parent 5d08286 commit 0cdbac5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@

logger = logging.getLogger(__name__)

# user fields returned by admin users api
# {
# "email": "email",
# "name": "email2nickname(email)",
# "contact_email": Profile.objects.get_contact_email_by_user(email),
# "is_admin": True, # False
# "active": True, # False
# "role": "default", # guest
# "quota_total": 100000,
# "quota_used": 50000,
# "created_at": "2017-02-23T15:51:21+08:00",
# "last_login": "2017-02-27T15:51:21+08:00",
# }


class AdminUsersBatch(APIView):
authentication_classes = (TokenAuthentication, SessionAuthentication)
Expand Down
2 changes: 1 addition & 1 deletion seahub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from seahub.api2.endpoints.admin.group_libraries import AdminGroupLibraries, AdminGroupLibrary
from seahub.api2.endpoints.admin.group_members import AdminGroupMembers, AdminGroupMember
from seahub.api2.endpoints.admin.shares import AdminShares
from seahub.api2.endpoints.admin.batch_set_user_quota import AdminUsersBatch
from seahub.api2.endpoints.admin.users_batch import AdminUsersBatch

# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
Expand Down

0 comments on commit 0cdbac5

Please sign in to comment.