Update usage of "an user"

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-06-15 02:17:55 -04:00
parent f17d13d68f
commit 111250fd99
10 changed files with 12 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ setting_login_method = namespace.add_setting(
setting_maximum_session_length = namespace.add_setting( setting_maximum_session_length = namespace.add_setting(
global_name='AUTHENTICATION_MAXIMUM_SESSION_LENGTH', global_name='AUTHENTICATION_MAXIMUM_SESSION_LENGTH',
default=DEFAULT_MAXIMUM_SESSION_LENGTH, help_text=_( 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.' 'remain logged in. Value is time in seconds.'
) )
) )

View File

@@ -242,7 +242,7 @@ class MultipleObjectMixin(SingleObjectMixin):
class ObjectActionMixin(object): 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.' error_message = 'Unable to perform operation on object %(instance)s.'
success_message = 'Operation performed on %(count)d object.' success_message = 'Operation performed on %(count)d object.'

View File

@@ -85,7 +85,7 @@ class SharedUploadedFile(models.Model):
@python_2_unicode_compatible @python_2_unicode_compatible
class UserLocaleProfile(models.Model): 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. at the moment.
""" """
user = models.OneToOneField( user = models.OneToOneField(

View File

@@ -46,7 +46,7 @@ class StoredEventType(models.Model):
@python_2_unicode_compatible @python_2_unicode_compatible
class EventSubscription(models.Model): 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. system.
""" """
user = models.ForeignKey( user = models.ForeignKey(
@@ -72,7 +72,7 @@ class EventSubscription(models.Model):
@python_2_unicode_compatible @python_2_unicode_compatible
class Notification(models.Model): 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 created when an event to which this user has been subscribed, are
commited elsewhere in the system. commited elsewhere in the system.
""" """

View File

@@ -64,7 +64,7 @@ class StoredPermission(models.Model):
def user_has_this(self, user): 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 The check is done sequentially over all of the user's groups and
roles. The check is interrupted at the first positive result. roles. The check is interrupted at the first positive result.
The check always returns True for superusers or staff users. The check always returns True for superusers or staff users.

View File

@@ -97,7 +97,7 @@ class APIUserView(generics.RetrieveUpdateDestroyAPIView):
class APIUserGroupList(generics.ListCreateAPIView): 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. post: Add a user to a list of groups.
""" """
mayan_object_permissions = { mayan_object_permissions = {

View File

@@ -6,7 +6,7 @@ from django.contrib.auth import get_user_model
class UserForm(forms.ModelForm): 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: class Meta:
fields = ( fields = (

View File

@@ -9,8 +9,8 @@ from .managers import UserOptionsManager
class UserOptions(models.Model): class UserOptions(models.Model):
""" """
This model stores administrative configurations for an user accounts. This model stores administrative configurations for a user accounts.
At the moment it stores a boolean flag to restrict an user's At the moment it stores a boolean flag to restrict a user's
ability to change their password. ability to change their password.
""" """
user = models.OneToOneField( user = models.OneToOneField(

View File

@@ -170,7 +170,7 @@ class UserAPITestMixin(object):
class UserTestCaseMixin(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 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 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 (edited, deleted, etc). To create a test users or groups to modify, use

View File

@@ -296,7 +296,7 @@ class UserListView(SingleObjectListView):
), ),
'no_results_text': _( 'no_results_text': _(
'User accounts can be create from this view. After creating ' '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'), 'no_results_title': _('There are no user accounts'),
'title': _('Users'), 'title': _('Users'),