Skip to content

Commit

Permalink
Merge pull request haiwen#1517 from haiwen/batch-update
Browse files Browse the repository at this point in the history
update user batch api
  • Loading branch information
llj authored Mar 22, 2017
2 parents 2568d72 + 0cdbac5 commit 893f3db
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 893f3db

Please sign in to comment.