Commit 89367eee by Őry Máté

dashboard: remove useless copypasted method

parent 9bbbc3ad
......@@ -902,13 +902,6 @@ class VmRenewForm(forms.Form):
if len(choices) < 2:
self.fields['lease'].widget = HiddenInput()
def clean_size(self):
size_in_bytes = self.cleaned_data.get("size")
if not size_in_bytes.isdigit() and len(size_in_bytes) > 0:
raise forms.ValidationError(_("Invalid format, you can use "
" GB or MB!"))
return size_in_bytes
@property
def helper(self):
helper = FormHelper(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment