Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forms.py 289B

12345678
  1. from django import forms
  2. from .models import Post, CustomUser
  3. class PostForm(forms.ModelForm):
  4. published_date = forms.DateField(widget=forms.widgets.DateInput(format="%d. %h %Y, %M:%S"))
  5. class Meta:
  6. model = Post
  7. fields = ('title', 'text', 'published_date', 'tags')