Simple app to add configuration options to a Django project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 12 lines 315 B view raw
1from typing import Dict, Type 2 3from django.utils.translation import gettext_lazy as _ 4 5FLOAT, INT, STR, FILE = (0, 1, 2, 3) 6TYPE_CHOICES = ( 7 (FLOAT, _("Float")), 8 (INT, _("Integer")), 9 (STR, _("String")), 10 (FILE, _("File")), 11) 12CONVERTER: Dict[int, Type] = {INT: int, FLOAT: float, STR: str, FILE: str}