from django import forms
from .models import Message
from django.utils.translation import ugettext_lazy as _


class MessageForm(forms.ModelForm):
    text = forms.CharField(label=_('Your message'),
                           widget=forms.Textarea(attrs={'rows': 5,
                                                        'placeholder': _("Enter your message here...")}))

    class Meta:
        model = Message
        exclude = ('from_user', 'to_user')

406566ed181c39e4a4c3304bb03c9c52aa9e6b48
<mask token>

<mask token>


class MessageForm(forms.ModelForm):
    <mask token>


    class Meta:
        model = Message
        exclude = 'from_user', 'to_user'

<mask token>


class MessageForm(forms.ModelForm):
    text = forms.CharField(label=_('Your message'), widget=forms.Textarea(
        attrs={'rows': 5, 'placeholder': _('Enter your message here...')}))


    class Meta:
        model = Message
        exclude = 'from_user', 'to_user'

from django import forms
from .models import Message
from django.utils.translation import ugettext_lazy as _


class MessageForm(forms.ModelForm):
    text = forms.CharField(label=_('Your message'), widget=forms.Textarea(
        attrs={'rows': 5, 'placeholder': _('Enter your message here...')}))


    class Meta:
        model = Message
        exclude = 'from_user', 'to_user'

from django import forms
from .models import Message
from django.utils.translation import ugettext_lazy as _


class MessageForm(forms.ModelForm):
    text = forms.CharField(label=_('Your message'),
                           widget=forms.Textarea(attrs={'rows': 5,
                                                        'placeholder': _("Enter your message here...")}))

    class Meta:
        model = Message
        exclude = ('from_user', 'to_user')
