docs: def handle_list(self, show_all, format_as_csv):
          """ List users """
          users = User.objects.all().order_by("username")
          if not show_all:
              users = users.exclude(is_active=False)
  
          if format_as_csv:
              fields = ["username", "fullname", "email", "staff", "superuser"]
              writer = csv.DictWriter(self.stdout, fieldnames=fields)
              writer.writeheader()
              for user in users:
                  writer.writerow(
                      {
                          "username": user.username,
                          "email": user.email,
                          "staff": user.is_staff,
                          "superuser": user.is_superuser,
                      }
                  )
  
          else:
              self.stdout.write("List of users:")
              for user in users:
                  out = "* %s" % user.username
  
                  if user.get_full_name():
                      out = "%s (%s)" % (out, user.get_full_name())
                  if not user.is_active:
                      out = "%s [inactive]" % out
  
                  self.stdout.write(out)