Skip to content
Snippets Groups Projects
Commit 721f5a1a authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Use a radio select for the comments visibility

parent 7963de62
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,12 @@ from .models import Activity
class CommentForm(forms.ModelForm):
internal = forms.BooleanField()
class Meta:
model = Activity
fields = ('message',)
def save(self):
self.instance.visibility
fields = ('message', 'visibility')
labels = {
'visibility': '',
}
widgets = {
'visibility': forms.RadioSelect(),
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment