Fixes in fields for apidocs
This commit is contained in:
parent
66070fdc41
commit
a84a2b51ff
11 changed files with 51 additions and 3 deletions
|
|
@ -32,6 +32,11 @@ check_url = re.compile(
|
|||
class UrlField(CharField):
|
||||
"""Field for check and save strings in url format"""
|
||||
|
||||
def __init__(self, name, size=1024, required=False):
|
||||
|
||||
super().__init__(name, size, required)
|
||||
self.jformat='url'
|
||||
|
||||
def check(self, value):
|
||||
|
||||
self.error=False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue