Tags Crud
models.py
class Tags (Document):
name = StringField()
def __str__(self):
return self.name
forms.py
from .models import Tags
class TagsForm(DocumentForm) :
class Meta:
model= Tags
fields='__all__'
views.py
from .models import Tags
from .forms import TagsForm
Last updated