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

Update URLconfs to use django.urls.path() #68

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

cansarigol
Copy link
Contributor

No description provided.

bookmarks.delete_bookmark,
name='cab_bookmark_delete'),
path('',
bookmarks.user_bookmarks,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to follow Django's guideline of allowing lines long than 79 characters if it helps readability. I would single line all the path()s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you but I didn't want to change these lines. I changed now

@@ -0,0 +1,8 @@
class FloatConverter:
regex = '[+-]?([0-9]*[.])?[0-9]+'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the plus sign required? I don't see it in the orignal regex or any test failing without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, I erased it

regex = '[+-]?([0-9]*[.])?[0-9]+'

def to_python(self, value):
return value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move the some type conversion from the rate_object view to here.

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

Successfully merging this pull request may close these issues.

None yet

2 participants