Skip to content

[Bug] Sorting transients with host matches by spectroscopic class yields a server error #361

@manning-ncsa

Description

@manning-ncsa

Attempting to sort transients with host matches by spectroscopic class yields a 500 server error.

URL: /transients/?hostmatch=Transients+with+Matched+Hosts&ex=&sort=spec_type

The cause appears to be that the regular expression (regex) for the reverse lookup is inconsistent with the transient naming rules.

Server logs:

...
django.urls.exceptions.NoReverseMatch: Reverse for 'results' with arguments '('PTF 10ujn',)' not found. 1 pattern(s) tried: ['transients/(?P<slug>[-a-zA-Z0-9_[]+)/\\Z']

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions