Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 8, 2023
1 parent e7d1931 commit ad91044
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion realtoric/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

@admin.register(User)
class UserAdmin(auth_admin.UserAdmin):

form = UserAdminChangeForm
add_form = UserAdminCreationForm
fieldsets = (
Expand Down
1 change: 0 additions & 1 deletion realtoric/users/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class UserFactory(DjangoModelFactory):

username = Faker("user_name")
email = Faker("email")
name = Faker("name")
Expand Down
3 changes: 0 additions & 3 deletions realtoric/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


class UserDetailView(LoginRequiredMixin, DetailView):

model = User
slug_field = "username"
slug_url_kwarg = "username"
Expand Down Expand Up @@ -40,7 +39,6 @@ def get_context_data(self, **kwargs):


class UserUpdateView(LoginRequiredMixin, SuccessMessageMixin, UpdateView):

model = User
fields = ["username", "email", "phone", "name", "address"]
success_message = _("Information successfully updated")
Expand All @@ -59,7 +57,6 @@ def get_object(self):


class UserRedirectView(LoginRequiredMixin, RedirectView):

permanent = False

def get_redirect_url(self):
Expand Down

0 comments on commit ad91044

Please # to comment.