From 5605fc0305d6aed8e1b5cf024f339c876716501e Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Fri, 1 Mar 2024 15:40:32 +0100 Subject: [PATCH] refactor(apis_metainfo): drop unused validator --- apis_core/apis_metainfo/validators.py | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 apis_core/apis_metainfo/validators.py diff --git a/apis_core/apis_metainfo/validators.py b/apis_core/apis_metainfo/validators.py deleted file mode 100644 index eb9d83023..000000000 --- a/apis_core/apis_metainfo/validators.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -import re - -from django.core.validators import RegexValidator - -# TODO: remove once sure -date_validator = RegexValidator( - regex=re.compile(r"^([0-9]{1,2}\.[0-9]{1,2}\.)?[0-9]{4}$"), - message="Please enter a valide date: (DD).(MM).YYYY", - code="invalide_date", -)