              "operations": new_operations,
              "replaces": replaces,
          })
          if start_migration_name:
              new_migration = subclass("%s_squashed_%s" % (start_migration.name, migration.name), app_label)
          else:
              new_migration = subclass("0001_squashed_%s" % migration.name, app_label)
              new_migration.initial = True
  
          # Write out the new migration file
 
</s> remove             new_migration = subclass("0001_squashed_%s" % migration.name, app_label)
 </s> add             name = '0001_%s' % (squashed_name or 'squashed_%s' % migration.name)
            new_migration = subclass(name, app_label) </s> remove * ...
 </s> add * The new :option:`squashmigrations --squashed-name`  option allows naming
  the squashed migration.
            if squashed_name:
                # Use the name from --squashed-name.
                prefix, _ = start_migration.name.split('_', 1)
                name = '%s_%s' % (prefix, squashed_name)
            else:
                # Generate a name.
                name = '%s_squashed_%s' % (start_migration.name, migration.name)
            new_migration = subclass(name, app_label)
              "operations": new_operations,
              "replaces": replaces,
          })
          if start_migration_name:
            if squashed_name:
                # Use the name from --squashed-name.
                prefix, _ = start_migration.name.split('_', 1)
                name = '%s_%s' % (prefix, squashed_name)
            else:
                # Generate a name.
                name = '%s_squashed_%s' % (start_migration.name, migration.name)
            new_migration = subclass(name, app_label)
          else:
              new_migration = subclass("0001_squashed_%s" % migration.name, app_label)
              new_migration.initial = True
  
          # Write out the new migration file
keep keep keep keep replace keep keep keep keep keep
 Fixed #28363 -- Allowed naming the migration generated by squashmigrations. 
django/core/management/commands/squashmigrations.py