Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate restaurant url using their name #5

Open
gdesmott opened this issue Mar 9, 2015 · 2 comments
Open

Generate restaurant url using their name #5

gdesmott opened this issue Mar 9, 2015 · 2 comments

Comments

@gdesmott
Copy link
Owner

gdesmott commented Mar 9, 2015

something like /mr-falafel

@Psycojoker
Copy link
Collaborator

We should use slugify of django for that https://docs.djangoproject.com/en/1.7/ref/utils/#django.utils.text.slugify and probably store them in a SlugField if we .get on them for performances reasons https://docs.djangoproject.com/en/1.7/ref/models/fields/#slugfield

@gdesmott
Copy link
Owner Author

So we have two options here:
a) /$id-mr-falafel and match only $id when searching in the DB
b) /mr-falafel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants