Impliment review comments from @nsoranzo

This commit is contained in:
XDtim
2017-07-03 17:30:00 -06:00
parent 55956fe2ca
commit e320fd4a20
+2 -2
View File
@@ -152,9 +152,9 @@ class User( object, Dictifiable ):
histories, credentials, and roles.
"""
# attributes that will be accessed and returned when calling to_dict( view='collection' )
dict_collection_visible_keys = ( 'id', 'email', 'username', 'deleted', 'purged', 'active', 'last_password_change' )
dict_collection_visible_keys = ( 'id', 'email', 'username', 'deleted', 'active', 'last_password_change' )
# attributes that will be accessed and returned when calling to_dict( view='element' )
dict_element_visible_keys = ( 'id', 'email', 'username', 'total_disk_usage', 'nice_total_disk_usage' )
dict_element_visible_keys = ( 'id', 'email', 'username', 'total_disk_usage', 'nice_total_disk_usage', 'deleted', 'active', 'last_password_change' )
def __init__( self, email=None, password=None ):
self.email = email