Cocktail-DB/cocktail_list/forms.py

9 lines
208 B
Python
Raw Normal View History

2020-06-04 19:53:18 +00:00
from django.forms import ModelForm
from .models import Cocktail
class CocktailForm(ModelForm):
class Meta:
model = Cocktail
2020-06-11 16:50:52 +00:00
fields = '__all__' # seleziono tutti i fields per il Form