def METHOD_NAME(data_fixture):
    database = data_fixture.create_database_application(name="1")
    registry = CustomFieldsTemporaryRegistry()
    registry.register(TemporaryGroupInstanceType())
    serializer = registry.get_serializer(database)
    assert serializer.__class__.__name__ == "DatabaseSerializer"
    assert "id" not in serializer.data
    assert serializer.data["name"] == 1
    assert "order" not in serializer.data
    serializer = registry.get_serializer(database, base_class=TemporarySerializer)
    assert "id" in serializer.data
    assert "order" not in serializer.data
    serializer = registry.get_serializer(database, request=True)
    assert "order" in serializer.data