# Path: della/inbox/models.py
# class Message(TimeStampMixin):
#     text = models.TextField()
# 
#     sent_by = models.ForeignKey(User, on_delete=models.CASCADE)
#     thread = models.ForeignKey(Thread, on_delete=models.CASCADE,  related_name='messages')


from django.forms import ModelForm
from .models import Message



class MessageCreateForm(ModelForm):

    class Meta:
        model = Message

# Path: della/inbox/models.py
# class Message(TimeStampMixin):
#     text = models.TextField()
# 
#     sent_by = models.ForeignKey(User, on_delete=models.CASCADE)
#     thread = models.ForeignKey(Thread, on_delete=models.CASCADE,  related_name='messages')


# Path: della/inbox/forms.py
from django.forms import ModelForm
from .models import Message




class MessageCreateForm(ModelForm):

    class Meta:
        model = Message

        fields = ['text']