<filename>src/tracks/forms.py
from django import forms
from .models import Track, Topic

class TrackForm(forms.ModelForm):
    class Meta:
        model = Track
        fields = ['title', 'description']
        help_texts = {
            'title': "Title must be unique for track.",
            'description': "Add a detailed description to the track."
        }

class TopicForm(forms.ModelForm):
    class Meta:
        model = Topic
        fields = ['title', 'description', 'video_url']
        help_texts = {
            'title': "Title must be unique for topic.",
            'description': "Add a detailed description to the topic.",
            'video_url': "The video that demonstrates the topic."
        }

class EditTopicNoteForm(forms.ModelForm):
    class Meta:
        model = Topic
        fields = ['note']
        help_texts = {
            'note': "Enter the html content of the instructor note."
        }
<filename>src/tracks/forms.py
from django import forms
from .models import Track, Topic

class TrackForm(forms.ModelForm):
    class Meta:
        model = Track
        fields = ['title', 'description']
        help_texts = {
            'title': "Title must be unique for track.",
            'description': "Add a detailed description to the track."
        }

class TopicForm(forms.ModelForm):
    class Meta:
        model = Topic
        fields = ['title', 'description', 'video_url']
        help_texts = {
            'title': "Title must be unique for topic.",
            'description': "Add a detailed description to the topic.",
            'video_url': "The video that demonstrates the topic."
        }

class EditTopicNoteForm(forms.ModelForm):
    class Meta:
        model = Topic
        fields = ['note']
        help_texts = {
            'note': "Enter the html content of the instructor note."
        }