Issue #14 Api de tags

This commit is contained in:
Daniel Cortes
2020-07-04 01:28:02 -04:00
parent f3a43de9ef
commit bea3eac644
5 changed files with 163 additions and 8 deletions

View File

@@ -1,9 +1,15 @@
from django import forms
from lists.models import ListItem
from lists.models import ListItem, Tag
class ListItemForm(forms.ModelForm):
class Meta:
model = ListItem
fields = ['entity', 'tags']
class TagForm(forms.ModelForm):
class Meta:
model = Tag
fields = ['name']