from django import forms
from datetime import datetime

from .models import Post, CustomUser
from django.forms import ModelForm, ValidationError
from taggit.forms import *
from django.contrib.auth.forms import UserCreationForm, UserChangeForm

from datetime import datetime
from croniter import croniter
from django.forms import ModelForm, ValidationError

class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        fields = ('title', 'text', 'published_date','tags')

class NewTagForm(forms.ModelForm):
    m_tags = TagField()
    class Meta:
        model = CustomUser
        fields = ['m_tags']
