title: Django Channels ORM Database Query
body: <p>I don't know what I did wrong</p>
  <p>I can't get Database Data.</p>
  <pre class="lang-py prettyprint-override"><code>class AsyncChatConsumer(AsyncWebsocketConsumer):
      async def receive(self, text_data):
          users = await self.get_users()
          for user in users:
              print(user.id)
  
      @database_sync_to_async
      def get_users(self):
          return User.objects.all()
  </code></pre>
  <pre><code>django.core.exceptions.SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async.
  </code></pre>
  <p>The information I checked and the official documents are all written in this way.</p>
  <p>But why am I getting an error?</p>