mirror of
https://github.com/QingdaoU/Spirit.git
synced 2024-12-28 15:32:12 +00:00
parent
b46207e8e9
commit
446adee597
@ -35,6 +35,7 @@ except ImportError as err:
|
||||
|
||||
class CommentForm(forms.ModelForm):
|
||||
comment = forms.CharField(
|
||||
label=_('Comment'),
|
||||
max_length=settings.ST_COMMENT_MAX_LEN,
|
||||
widget=forms.Textarea)
|
||||
comment_hash = forms.CharField(
|
||||
|
@ -65,6 +65,7 @@ class TopicPrivateManyForm(forms.Form):
|
||||
|
||||
# Only good for create
|
||||
users = forms.ModelMultipleChoiceField(
|
||||
label=_("Invite users"),
|
||||
queryset=User.objects.all(),
|
||||
to_field_name=User.USERNAME_FIELD,
|
||||
widget=MultipleInput(attrs={'placeholder': _("user1, user2, ...")}))
|
||||
|
Loading…
Reference in New Issue
Block a user