17 lines
376 B
Python
17 lines
376 B
Python
# -*- coding: utf-8 -*-
|
|
from django import forms
|
|
from django.contrib.admin import widgets
|
|
|
|
from apps.pla.models.model_plagroups import PlaGroups
|
|
|
|
|
|
class PlaGroupsForm(forms.ModelForm):
|
|
|
|
name = forms.CharField(
|
|
widget=forms.TextInput(attrs={"class": "form-control", "autofocus": ""})
|
|
)
|
|
|
|
class Meta:
|
|
model = PlaGroups
|
|
fields = ("id", "name")
|