> For the complete documentation index, see [llms.txt](https://olee-tech.gitbook.io/django/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://olee-tech.gitbook.io/django/mongodb/tags-crud.md).

# Tags Crud

models.py

```python
class Tags (Document):
    name = StringField()
    def __str__(self):
        return self.name    
```

forms.py

```python
from .models import Tags

class TagsForm(DocumentForm)   :
    class Meta:
        model=  Tags
        fields='__all__' 
```

views.py

```python
from .models import Tags
from .forms import TagsForm
```
