old_contents: from django import forms
  from django.contrib.auth.models import User
  
  from chats.models import Chat
  from profiles.models import FriendGroup
  
  
  class PublicChatForm(forms.ModelForm):
      """Public-facing Chat form used in the web-interface for users."""
      
      class Meta:
          fields = ('text',)
          model = Chat
  
new_contents: from django import forms
  from django.contrib.auth.models import User
  
  from chats.models import Chat
  from profiles.models import FriendGroup
  
  
  class PublicChatForm(forms.ModelForm):
      """Public-facing Chat form used in the web-interface for users."""
      
      class Meta:
          fields = (
              'friend_groups',
              'text',
          )
          model = Chat
  
subject: Add friend_groups to the ChatForm