google-code-export / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

Tribes slug urls problem #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Slug reversing fails with underscores and hyphens.

Steps that reproduce the problem:
1. Creates a tribe like "my tribe", with slug "my-tribe"

I've attached a patch that fixes problem.

Original issue reported on code.google.com by msaeli...@gmail.com on 24 Nov 2008 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
I ran across this same issue. Here is a more elegant solution.

Original comment by gone...@gmail.com on 30 Nov 2008 at 4:38

Attachments:

GoogleCodeExporter commented 9 years ago
The first patch is not the best route to take. I much prefer gone404's patch. 
\w already handles an underscore as 
well which is properly omitted in gone404's patch.

Original comment by bros...@gmail.com on 1 Dec 2008 at 5:46

GoogleCodeExporter commented 9 years ago
This was fixed in r1244.

Original comment by bros...@gmail.com on 14 Dec 2008 at 5:19