from django.forms import ModelForm from django import forms from third.models import Restaurant, Reviews from django.utils.translation import gettext_lazy as _ REVIEW_POINT_CHOICES = ( ('1', 1), ('2', 2), ('3', 3), ('4', 4), ('5', 5) ) class ReviewForm(ModelForm): class Meta: model = Reviews fields = ['point', 'comment', 'restaurant'] labels = { 'point': _('평점'), 'comment': _('코멘트') } help_texts..