Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
2 | # -*- coding: utf-8 -*- | ||||
3 | # BitBake Toaster UI tests implementation | ||||
4 | # | ||||
5 | # Copyright (C) 2023 Savoir-faire Linux | ||||
6 | # | ||||
7 | # SPDX-License-Identifier: GPL-2.0-only | ||||
8 | # | ||||
9 | |||||
10 | from django import forms | ||||
11 | from django.core.validators import FileExtensionValidator | ||||
12 | |||||
13 | class LoadFileForm(forms.Form): | ||||
14 | eventlog_file = forms.FileField(widget=forms.FileInput(attrs={'accept': '.json'})) |