old_contents: """
  byceps.blueprints.admin.party.forms
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  :Copyright: 2006-2019 Jochen Kupperschmidt
  :License: Modified BSD, see LICENSE for details.
  """
  
  from wtforms import BooleanField, DateTimeField, IntegerField, StringField
  from wtforms.validators import InputRequired, Length, Optional
  
  from ....util.l10n import LocalizedForm
  
  
  class UpdateForm(LocalizedForm):
      title = StringField('Titel', validators=[Length(min=1, max=40)])
      starts_at = DateTimeField('Beginn', format='%d.%m.%Y %H:%M', validators=[InputRequired()])
      ends_at = DateTimeField('Ende', format='%d.%m.%Y %H:%M', validators=[InputRequired()])
      max_ticket_quantity = IntegerField('Maximale Anzahl Tickets', validators=[Optional()])
      shop_id = StringField('Shop-ID', validators=[Optional()])
      archived = BooleanField('archiviert')
  
  
  class CreateForm(UpdateForm):
      id = StringField('ID', validators=[Length(min=1, max=40)])
  
new_contents: """
  byceps.blueprints.admin.party.forms
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  :Copyright: 2006-2019 Jochen Kupperschmidt
  :License: Modified BSD, see LICENSE for details.
  """
  
  from wtforms import BooleanField, DateTimeField, IntegerField, StringField
  from wtforms.validators import InputRequired, Length, Optional
  
  from ....util.l10n import LocalizedForm
  
  
  class _BaseForm(LocalizedForm):
      title = StringField('Titel', validators=[Length(min=1, max=40)])
      starts_at = DateTimeField('Beginn', format='%d.%m.%Y %H:%M', validators=[InputRequired()])
      ends_at = DateTimeField('Ende', format='%d.%m.%Y %H:%M', validators=[InputRequired()])
      max_ticket_quantity = IntegerField('Maximale Anzahl Tickets', validators=[Optional()])
      shop_id = StringField('Shop-ID', validators=[Optional()])
  
  
  class CreateForm(_BaseForm):
      id = StringField('ID', validators=[Length(min=1, max=40)])
  
  
  class UpdateForm(_BaseForm):
      archived = BooleanField('archiviert')
  
subject: Introduce base party form, limit `archived` flag to update form