Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django import forms
- from .models import Topic,Entry
- class TopicForm(forms.ModelForm):
- class Meta:
- model = Topic
- fields = ["text"]
- labels = {"text":''}
- class EntryForm(forms.ModelForm):
- class Meta:
- model = Entry
- fields = ['text']
- labels = {'text':'entry:'}
- widgets = {'text':forms.Textarea(attrs={'cols':80})}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement