Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused forms and stats views #628

Merged
merged 3 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

2 changes: 0 additions & 2 deletions apps/accounts/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
UserActivationView,
UserRegistrationView,
DashboardView,
UserUpdateView,
ProviderPortalHomeView,
ProviderRequestDetailView,
ProviderRequestWizardView,
Expand Down Expand Up @@ -104,7 +103,6 @@
# include admin URLs
path("admin/", admin.urls),
# custom views
path("user/<pk>/", UserUpdateView.as_view(), name="user_edit"),
path(
"provider-portal/",
ProviderPortalHomeView.as_view(),
Expand Down
17 changes: 1 addition & 16 deletions apps/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from django.urls import reverse
from django.utils.encoding import force_str
from django.utils.safestring import mark_safe
from django.views.generic import DetailView, ListView, UpdateView
from django.views.generic import DetailView, ListView
from django.views.generic.base import TemplateView
from django_registration import signals, validators
from django_registration.backends.activation.views import (
Expand All @@ -39,7 +39,6 @@
OrgDetailsForm,
PreviewForm,
ServicesForm,
UserUpdateForm,
)
from .models import (
Hostingprovider,
Expand Down Expand Up @@ -163,20 +162,6 @@ def get(self, *args, **kwargs):
return HttpResponseRedirect(force_str(self.get_success_url()))


class UserUpdateView(UpdateView):
"""
A view for allowing users to edit basic details, and control
notification settings
"""

model = User
form_class = UserUpdateForm

def get(self, request, *args, **kwargs):
"""Handle GET requests: instantiate a blank version of the form."""
return super().get(request, args, kwargs)


class ProviderPortalHomeView(LoginRequiredMixin, ListView):
"""
Home page of the Provider Portal:
Expand Down
5 changes: 0 additions & 5 deletions apps/greencheck/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,3 @@ def _adjust_kwargs(cls, **kwargs):
class Meta:
model = GreenDomain
django_get_or_create = ("url",)


class DailyStatFactory(dj_factory.DjangoModelFactory):
class Meta:
model = gc_models.DailyStat
103 changes: 0 additions & 103 deletions apps/greencheck/management/commands/backfill_stats.py

This file was deleted.

1 change: 0 additions & 1 deletion apps/greencheck/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .checks import * #  noqa
from .stats import * #  noqa
Loading