hotpocket/services/backend/hotpocket_backend/apps/ui/forms/saves.py
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

22 lines
471 B
Python

# -*- coding: utf-8 -*-
from __future__ import annotations
from django import forms
from django.core import validators
from django.utils.translation import gettext_lazy as _
from .base import Form
class CreateForm(Form):
url = forms.CharField(
label=_('URL'),
required=True,
validators=[
validators.URLValidator(schemes=['http', 'https']),
],
)
def get_layout_fields(self) -> list[str]:
return ['url']