Changeset 8fa24c3 in firmaeventos for eventos/forms.py


Ignore:
Timestamp:
Nov 20, 2017, 11:09:41 AM (7 years ago)
Author:
lhernandez <lhernandez@…>
Branches:
master
Children:
c9f75d7
Parents:
0138d11
Message:

Generando templates para registrar eventos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eventos/forms.py

    r3397a08 r8fa24c3  
    2222        """
    2323        model = Evento
    24         exclude = ['activo']
     24        exclude = ['activo', 'serial']
    2525
    2626    def __init__(self, *args, **kwargs):
     
    3535            {'class': 'datepicker',
    3636             'placeholder': 'Fecha'})
    37         self.fields['serial'].widget.attrs.update(
    38             {'placeholder': 'Serial'})
     37        self.fields['archivo'].required=True
    3938        self.fields['archivo'].widget.attrs.update(
    4039            {'class': 'file-path',
Note: See TracChangeset for help on using the changeset viewer.