mirror of
https://github.com/correl/codereview.git
synced 2024-12-28 19:19:16 +00:00
11 lines
402 B
Python
11 lines
402 B
Python
from django import forms
|
|
from codereview.review.models import *
|
|
|
|
class NewCommitReviewForm(forms.Form):
|
|
author = forms.IntegerField(widget=forms.HiddenInput)
|
|
repo = forms.IntegerField(widget=forms.HiddenInput)
|
|
ref = forms.CharField(widget=forms.HiddenInput)
|
|
class CommentForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Comment
|
|
fields = ('review', 'line_a', 'line_b', 'text')
|