Skip to content

Instantly share code, notes, and snippets.

View mikauser001's full-sized avatar
🏠
Working from home

Fiverr Profile - django2web mikauser001

🏠
Working from home
  • Germany
  • 05:50 (UTC -12:00)
View GitHub Profile
import textwrap
from django.core.exceptions import ValidationError
from profanity_check import predict
def check_profanity(value: str):
"""Profanity check (Programmed by a 3rd party lib)"""
if predict(textwrap.wrap(value)):
raise ValidationError(
_(