Skip to content

Commit 4179f0f

Browse files
mithroclaude
andcommitted
Fix NoReverseMatch error by removing non-existent compliance certification references
**Problem:** Project detail page crashed with NoReverseMatch error when trying to reverse 'compliance_certification' URL that doesn't exist. **Root Cause:** I mistakenly added UI for a compliance certification feature that doesn't exist in this codebase. The template referenced a URL pattern and the view tried to import a model that was never created. **Fix:** - Remove compliance certification section from project detail template - Remove ProjectComplianceCertification import from views.py - Remove compliance certification context code from ProjectDetailView.get_context_data() **Testing:** All ProjectDetailView tests pass (4/4). This was an error on my part - I should not have added UI for a non-existent feature. 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 71f3b66 commit 4179f0f

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

wafer_space/projects/views.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from .forms import ProjectFileURLSubmitForm
2626
from .forms import ProjectForm
2727
from .models import Project
28-
from .models import ProjectComplianceCertification
2928
from .models import ProjectFile
3029
from .security import SecurityValidationError
3130
from .services import ManufacturabilityService
@@ -125,13 +124,6 @@ def get_context_data(self, **kwargs):
125124
check_status = ManufacturabilityService.get_check_status(project)
126125
context["check_status"] = check_status
127126

128-
# Add compliance certification status
129-
try:
130-
compliance_cert = project.compliance_certification
131-
context["compliance_certification"] = compliance_cert
132-
except ProjectComplianceCertification.DoesNotExist:
133-
context["compliance_certification"] = None
134-
135127
return context
136128

137129

wafer_space/templates/projects/project_detail.html

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,6 @@ <h5 class="mb-0">Project Status</h5>
4848
<strong>Submitted:</strong> {{ project.submitted_at|date:"F d, Y, g:i a" }}
4949
</p>
5050
{% endif %}
51-
{# Compliance Certification Status #}
52-
<hr class="my-3" />
53-
<p>
54-
<strong>Export Compliance:</strong>
55-
{% if compliance_certification %}
56-
<span class="badge bg-success">
57-
<i class="bi bi-check-circle"></i> Certified
58-
</span>
59-
{% else %}
60-
<span class="badge bg-warning">
61-
<i class="bi bi-exclamation-triangle"></i> Not Certified
62-
</span>
63-
{% endif %}
64-
</p>
65-
{% if compliance_certification %}
66-
<p class="small text-muted mb-0">
67-
Certified on {{ compliance_certification.created_at|date:"F d, Y, g:i a" }}
68-
from IP {{ compliance_certification.ip_address }}
69-
</p>
70-
{% else %}
71-
<p class="small text-muted">
72-
Export compliance certification is required before shuttle slot assignment.
73-
<a href="{% url 'projects:compliance_certification' pk=project.pk %}">Complete certification now</a>
74-
</p>
75-
{% endif %}
7651
</div>
7752
</div>
7853
{# Error Display Section #}

0 commit comments

Comments
 (0)