2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-22 13:26:14 +01:00

Keep reverse route for user page for user with null username from crashing

I find it inexplicable that this could happen, but there you are.
This commit is contained in:
Jason McBrayer 2018-10-26 14:00:43 -04:00
parent 7c5a03368b
commit 0feb9013b4

View File

@ -42,6 +42,7 @@ urlpatterns = [
path('settings', views.settings, name='settings'),
path('thread/<int:id>', views.thread, name='thread'),
path('tags/<tag>', views.tag, name='tag'),
path('user/', views.home, name='user_bad'),
path('user/<username>', views.user, name='user'),
path('user/<username>/next/<int:next>', views.user, name='user_next'),
path('user/<username>/prev/<int:prev>', views.user, name='user_prev'),