Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 19c5079

Browse files
author
Dimitar Tasev
committed
Make staticmethods
1 parent 591826f commit 19c5079

File tree

1 file changed

+4
-2
lines changed
  • WebApp/autoreduce_webapp/autoreduce_webapp

1 file changed

+4
-2
lines changed

WebApp/autoreduce_webapp/autoreduce_webapp/urls.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
class NegativeIntConverter:
2424
regex = r'-?\d+'
2525

26-
def to_python(self, value):
26+
@staticmethod
27+
def to_python(value):
2728
"""
2829
Return the value as a Python object
2930
"""
3031
return int(value)
3132

32-
def to_url(self, value):
33+
@staticmethod
34+
def to_url(value):
3335
"""
3436
Return the value as a URL string
3537
"""

0 commit comments

Comments
 (0)