# Path: srs/models.py
# class Game(models.Model):
#     name = models.CharField(max_length=256, db_index=True)
#     abbreviation = models.CharField(max_length=64, db_index=True)
#     sldb_name = models.CharField(max_length=64, db_index=True)
#     developer = models.ManyToManyField(User, blank=True)
# 
#     def __unicode__(self):
#         return "Game({}, {}, {})".format(self.pk, self.abbreviation, self.name[:70])
# 
#     def get_absolute_url(self):
#         return reverse("srs/browse_archive", args=["game={}".format(self.pk)])
# 
#     class Meta:
#         ordering = ["name"]


import logging
from django import forms
from .models import Game
# This file is part of the "spring relay site / srs" program. It is published
# under the GPLv3.
#
# Copyright (C) 2016-2020 Daniel Troeder (daniel #at# admin-box #dot# com)
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.




logger = logging.getLogger(__name__)


class UploadFileForm(forms.Form):
    file = forms.FileField()
    short = forms.CharField(
        widget=forms.TextInput(attrs={"size": "53"}),
        max_length=50,
        label="Short subject (50 char max)",
        required=False,
    )
    long_text = forms.CharField(
        widget=forms.Textarea(attrs={"rows": "4", "cols": "60"}),
        max_length=512,
        label="Comment (512 char max)",
        required=False,
    )
    tags = forms.CharField(

# Path: srs/models.py
# class Game(models.Model):
#     name = models.CharField(max_length=256, db_index=True)
#     abbreviation = models.CharField(max_length=64, db_index=True)
#     sldb_name = models.CharField(max_length=64, db_index=True)
#     developer = models.ManyToManyField(User, blank=True)
# 
#     def __unicode__(self):
#         return "Game({}, {}, {})".format(self.pk, self.abbreviation, self.name[:70])
# 
#     def get_absolute_url(self):
#         return reverse("srs/browse_archive", args=["game={}".format(self.pk)])
# 
#     class Meta:
#         ordering = ["name"]


# Path: srs/forms.py
import logging
from django import forms
from .models import Game

# This file is part of the "spring relay site / srs" program. It is published
# under the GPLv3.
#
# Copyright (C) 2016-2020 Daniel Troeder (daniel #at# admin-box #dot# com)
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.




logger = logging.getLogger(__name__)


class UploadFileForm(forms.Form):
    file = forms.FileField()
    short = forms.CharField(
        widget=forms.TextInput(attrs={"size": "53"}),
        max_length=50,
        label="Short subject (50 char max)",
        required=False,
    )
    long_text = forms.CharField(
        widget=forms.Textarea(attrs={"rows": "4", "cols": "60"}),
        max_length=512,
        label="Comment (512 char max)",
        required=False,
    )
    tags = forms.CharField(

        widget=forms.TextInput(attrs={"size": "53"}),