Update usage of "an user"
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ setting_login_method = namespace.add_setting(
|
||||
setting_maximum_session_length = namespace.add_setting(
|
||||
global_name='AUTHENTICATION_MAXIMUM_SESSION_LENGTH',
|
||||
default=DEFAULT_MAXIMUM_SESSION_LENGTH, help_text=_(
|
||||
'Maximum time an user clicking the "Remember me" checkbox will '
|
||||
'Maximum time a user clicking the "Remember me" checkbox will '
|
||||
'remain logged in. Value is time in seconds.'
|
||||
)
|
||||
)
|
||||
|
||||
@@ -242,7 +242,7 @@ class MultipleObjectMixin(SingleObjectMixin):
|
||||
|
||||
class ObjectActionMixin(object):
|
||||
"""
|
||||
Mixin that performs an user action to a queryset
|
||||
Mixin that performs a user action to a queryset
|
||||
"""
|
||||
error_message = 'Unable to perform operation on object %(instance)s.'
|
||||
success_message = 'Operation performed on %(count)d object.'
|
||||
|
||||
@@ -85,7 +85,7 @@ class SharedUploadedFile(models.Model):
|
||||
@python_2_unicode_compatible
|
||||
class UserLocaleProfile(models.Model):
|
||||
"""
|
||||
Stores the locale preferences of an user. Stores timezone and language
|
||||
Stores the locale preferences of a user. Stores timezone and language
|
||||
at the moment.
|
||||
"""
|
||||
user = models.OneToOneField(
|
||||
|
||||
@@ -46,7 +46,7 @@ class StoredEventType(models.Model):
|
||||
@python_2_unicode_compatible
|
||||
class EventSubscription(models.Model):
|
||||
"""
|
||||
This model stores the event subscriptions of an user for the entire
|
||||
This model stores the event subscriptions of a user for the entire
|
||||
system.
|
||||
"""
|
||||
user = models.ForeignKey(
|
||||
@@ -72,7 +72,7 @@ class EventSubscription(models.Model):
|
||||
@python_2_unicode_compatible
|
||||
class Notification(models.Model):
|
||||
"""
|
||||
This model keeps track of the notifications for an user. Notifications are
|
||||
This model keeps track of the notifications for a user. Notifications are
|
||||
created when an event to which this user has been subscribed, are
|
||||
commited elsewhere in the system.
|
||||
"""
|
||||
|
||||
@@ -64,7 +64,7 @@ class StoredPermission(models.Model):
|
||||
|
||||
def user_has_this(self, user):
|
||||
"""
|
||||
Helper method to check if an user has been granted this permission.
|
||||
Helper method to check if a user has been granted this permission.
|
||||
The check is done sequentially over all of the user's groups and
|
||||
roles. The check is interrupted at the first positive result.
|
||||
The check always returns True for superusers or staff users.
|
||||
|
||||
@@ -97,7 +97,7 @@ class APIUserView(generics.RetrieveUpdateDestroyAPIView):
|
||||
|
||||
class APIUserGroupList(generics.ListCreateAPIView):
|
||||
"""
|
||||
get: Returns a list of all the groups to which an user belongs.
|
||||
get: Returns a list of all the groups to which a user belongs.
|
||||
post: Add a user to a list of groups.
|
||||
"""
|
||||
mayan_object_permissions = {
|
||||
|
||||
@@ -6,7 +6,7 @@ from django.contrib.auth import get_user_model
|
||||
|
||||
class UserForm(forms.ModelForm):
|
||||
"""
|
||||
Form used to edit an user's mininal fields by the user himself
|
||||
Form used to edit a user's mininal fields by the user himself
|
||||
"""
|
||||
class Meta:
|
||||
fields = (
|
||||
|
||||
@@ -9,8 +9,8 @@ from .managers import UserOptionsManager
|
||||
|
||||
class UserOptions(models.Model):
|
||||
"""
|
||||
This model stores administrative configurations for an user accounts.
|
||||
At the moment it stores a boolean flag to restrict an user's
|
||||
This model stores administrative configurations for a user accounts.
|
||||
At the moment it stores a boolean flag to restrict a user's
|
||||
ability to change their password.
|
||||
"""
|
||||
user = models.OneToOneField(
|
||||
|
||||
@@ -170,7 +170,7 @@ class UserAPITestMixin(object):
|
||||
|
||||
class UserTestCaseMixin(object):
|
||||
"""
|
||||
This TestCaseMixin is used to create an user and group to execute the
|
||||
This TestCaseMixin is used to create a user and group to execute the
|
||||
test case, these are used to just create an identity which is required by
|
||||
most of the code in the project, these are not meant to be acted upon
|
||||
(edited, deleted, etc). To create a test users or groups to modify, use
|
||||
|
||||
@@ -296,7 +296,7 @@ class UserListView(SingleObjectListView):
|
||||
),
|
||||
'no_results_text': _(
|
||||
'User accounts can be create from this view. After creating '
|
||||
'an user account you will prompted to set a password for it. '
|
||||
'a user account you will prompted to set a password for it. '
|
||||
),
|
||||
'no_results_title': _('There are no user accounts'),
|
||||
'title': _('Users'),
|
||||
|
||||
Reference in New Issue
Block a user