Typo fixes and cleanup

This commit is contained in:
Rachid Mrad 2023-12-27 19:33:48 -05:00
parent 0951faa998
commit e211a59304
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
4 changed files with 3 additions and 8 deletions

View file

@ -10,7 +10,6 @@ from django.views.generic import RedirectView
from registrar import views from registrar import views
# from registrar.views.admin_views import export_data
from registrar.views.admin_views import ExportData from registrar.views.admin_views import ExportData

View file

@ -1354,8 +1354,8 @@ class Domain(TimeStampedModel, DomainHelper):
""" """
logger.info("Changing to ready state") logger.info("Changing to ready state")
logger.info("able to transition to ready state") logger.info("able to transition to ready state")
# if self.first_ready_at is not None, this means that his # if self.first_ready_at is not None, this means that this
# domain wasr READY, then not READY, then is READY again. # domain was READY, then not READY, then is READY again.
# We do not want to overwrite first_ready_at. # We do not want to overwrite first_ready_at.
if self.first_ready_at is None: if self.first_ready_at is None:
self.first_ready_at = timezone.now() self.first_ready_at = timezone.now()

View file

@ -4,7 +4,7 @@
<div id="content-main"> <div id="content-main">
{% include "admin/app_list.html" with app_list=app_list show_changelinks=True %} {% include "admin/app_list.html" with app_list=app_list show_changelinks=True %}
<div class="custom-content module"> <div class="custom-content module">
<h2>Welcome to the Custom Admin Homepage!</h2> <h2>Domain growth report</h2>
{% comment %} {% comment %}
Inputs of type date suck for accessibility. Inputs of type date suck for accessibility.

View file

@ -17,8 +17,6 @@ class TestViews(TestCase):
# Make a GET request to the admin index page # Make a GET request to the admin index page
response = self.client.get(admin_index_url) response = self.client.get(admin_index_url)
print(f"response1 {response}")
# Assert that the response status code is 200 (OK) # Assert that the response status code is 200 (OK)
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
@ -33,8 +31,6 @@ class TestViews(TestCase):
# Make a GET request to the export data page # Make a GET request to the export data page
response = self.client.get(export_data_url) response = self.client.get(export_data_url)
print(response)
# Assert that the response status code is 200 (OK) or the expected status code # Assert that the response status code is 200 (OK) or the expected status code
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)